Skip to main content

Questions tagged [file-extension]

A file extension is an optional alphanumeric identifier which comes after the last found period in a file name. A file extension itself does not define what type of data is in a file, but it does give a hint as to what is *supposed* to be in the file.

Filter by
Sorted by
Tagged with
188 votes
6 answers
290k views

How can I determine file type without an extension on Windows?

I sometimes get files from my clients that have the wrong file extension. For example, the name is image.jpg but the file is actually a TIFF image. In many cases I can clarify it by opening the file ...
Martin's user avatar
  • 3,962
138 votes
10 answers
680k views

How do you remove a default program association for file types in Windows 7?

I somehow have set the default file type association for a file type in Windows 7. It doesn't appear to be possible to delete it from the "Change the file type associated with a file extension" ...
Christothes's user avatar
  • 4,267
126 votes
7 answers
65k views

File extension for Markdown files?

Is there an official file extension for standalone Markdown files?
Beat Rupp's user avatar
  • 1,391
61 votes
4 answers
56k views

Find files filtered by multiple extensions

What is the correct syntax for: find . -type f -name \*.\(shtml\|css\) This works, but is inelegant: find . -type f -name \*.shtml > f.txt && find . -type f -name \*.css >> f.txt ...
Dave Jarvis's user avatar
  • 3,258
53 votes
15 answers
51k views

Does it make sense converting a file to a higher audio bitrate?

When a certain file (mp4, flv, etc) has a 95 kbps audio bitrate - does it make sense outputing to a higher bitrate when converting to mp3 or other format (be it lossy or not)? Would this result in ...
user avatar
52 votes
3 answers
59k views

Programatically associate file extensions with application on Windows

I've just recently reinstalled Windows and in setting up my environment I've noticed that all my associations for the various programming languages I edit in Notepad++ have gone (naturally). I am ...
deed02392's user avatar
  • 3,072
51 votes
4 answers
167k views

How do I find out the file type without an extension? [duplicate]

After recovering my HDD, I ended up with a lot of files with no extension. Many of them are .bin files. Is there any way to find out what file format they actually are? Many of them have no ...
echolab's user avatar
  • 735
40 votes
6 answers
47k views

How to extract a complete list of extension types within a directory?

Within a directory, and recursively within it's sub-directories, meaning every directory within a directory is processed, how do I compile a complete list of unique extensions within the directory? ...
blunders's user avatar
  • 887
36 votes
1 answer
9k views

osx - stop xcode from opening ruby files

I have set my favorite text editor as the default application to open ruby files (.rb extension) multiple times by following Open With -> then Other... then I click the checkbox Always Open With. ...
AJcodez's user avatar
  • 509
33 votes
1 answer
18k views

What file extensions should be used on GPG generated output?

In Linux file name extensions are irrelevant, but on a Windows system, many GPG users use GUI applications rather than the command line. They may want to be able to double click on an encrypted file, ...
IQAndreas's user avatar
  • 4,077
30 votes
5 answers
15k views

On Windows, what filename extensions denote an executable?

On Windows, *.exe, *.bat, *.cmd, and *.com all represent programs or shell scripts that can be run, simply by double-clicking them. Are there any other filename extensions that indicate a file is ...
Ken's user avatar
  • 355
25 votes
7 answers
16k views

Show/hide extension of a file through OS X command line

I'm looking for a way, via terminal, to change whether or not a specific file's extension is shown in the Finder, something along the lines of: $ hideextension ~/music/somesong.mp3 Without having to ...
joshua.thomas.bird's user avatar
23 votes
3 answers
60k views

How to extract the filename without the extension from a full path?

I'm trying to right my first bash script, and at one point a filename is passed to the script as $1. I need to extract the file name without the extension. Currently, I'm assuming that all extensions ...
user304822's user avatar
18 votes
1 answer
79k views

Search for files with a specific file extension in Windows 7 [duplicate]

In Windows Explorer, I would like to search for all files in a specific folder and its subfolders with the file extension .doc. To do that, I tried to enter .doc in the search bar on the top right of ...
Donald Duck's user avatar
  • 2,569
17 votes
5 answers
111k views

How do I make and run my own file extension?

I was checking out the files in a old game called Warcraft III and saw that they had files with their own extension, for example, file name.w3x. How do you make your own file extension and run it?
mendez's user avatar
  • 359
17 votes
2 answers
30k views

There is a length limit to Windows file extensions?

If I want to create a new file extension for a binary/text data file that will open on my own application (extension ".mylongfileextensionname" for example), will Windows list it with my aplication (...
Diogo's user avatar
  • 30.5k
16 votes
3 answers
8k views

How can I add default preview for files in Explorer?

If I click on a .ts (typescript) file and activate the Preview Pane in Windows Explorer, then I see a preview of the file: Why? Because I set Notepad to open .ts files. But I have .js files which I ...
Royi Namir's user avatar
  • 5,788
15 votes
7 answers
30k views

Default save extension is "Normal Text" but Notepad++ is saving without an extension

When I try to save a file, the default extension is All types (*.*). It basically saves it without an extension, for example, just new 1 instead of new 1.txt. “Default language” option in Settings → ...
Larper's user avatar
  • 165
14 votes
1 answer
5k views

Running shortcut from command prompt without the .lnk extension (Windows)

I have created a folder (d:\shortcuts), created shortcuts for most applications in this folder and appended the folder path to the Path environment variable. Now all my applications are available from ...
Abbas's user avatar
  • 289
14 votes
3 answers
52k views

Differences between TIFF,TIF,tiff,tif

I have seen TIFF files having various extensions - TIFF,TIF,tiff,tif. Are they same? Can I safely rename a file with TIFF extension to tif or will it cause loss of information?
Chethan S.'s user avatar
  • 1,057
13 votes
1 answer
9k views

How to open file with default program from command line?

If I click on a file in a GUI file explorer, a default program is used to open it. This is useful for files which I don't know how to open from the command line. Is there a way to open a file with ...
Gradient's user avatar
  • 571
12 votes
4 answers
4k views

Hiding files of a certain extension (.pyc) from Nautilus

I would like to hide every .pyc file from Nautilus. I use Ubuntu 10.04. What could I do?
juanefren's user avatar
  • 327
12 votes
3 answers
8k views

How to remove extension from pathname passed as {} in `find -exec`?

Given the situation that audio needs to be extracted from video files residing in subdirectories, how would one go about properly naming the resulting files? The following one-liner works, but ...
Daktari's user avatar
  • 153
12 votes
4 answers
20k views

Automatically hide files with certain extension in Windows

Is it possible for Windows to automatically hide files with a certain extension? Let's say some program generates a set of files (I cant alter the sources of the program), and I would like some of ...
bor's user avatar
  • 263
11 votes
3 answers
9k views

What file format/database format does Picasa use?

I am trying to figure out what file format the .db file and .pmp files are. I tried using db_dump (Berkeley DB) for the .db files, but it seems that they are not Berkeley DB, or of an older version. I ...
Raymond's user avatar
  • 2,680
10 votes
5 answers
4k views

Get Windows to treat files with the same extension differently

Multiple programs use the same file extension, but the formats are totally different and incompatible. For instance, I have .sch files on my computer that are in at least 5 different formats (TINA, ...
endolith's user avatar
  • 7,561
10 votes
3 answers
14k views

Searching for Extensionless Files in Windows 7

I cannot for the life of me figure out a way to have Windows 7 Explorer search for files with no extension. In XP it was nice and simple: just search for files named *. but in 7, that does not work ...
Synetech's user avatar
  • 69k
8 votes
2 answers
5k views

Remove a file extension case-insentively in Bash

I want to remove the suffix of a file by using basename in a Bash script. The command removes the suffix only in a case-sensitive way though. How can I remove a extension case-insensitively?
ironsand's user avatar
  • 2,329
8 votes
6 answers
49k views

How to open nokia photo images with .nrw extension?

I took some photos with my Nokia and they stayed with the .nrw extension. How can I open this format?
aF.'s user avatar
  • 207
8 votes
2 answers
3k views

Changing icons for protected file extensions in Windows 10

The goal is to get .jpg, .png, .tif, and .raw files to always open with Photoshop CC 2015 and use their appropriate icons. You can refer to the flowchart below about how Windows 10 chooses an icon ...
Mike's user avatar
  • 241
8 votes
5 answers
18k views

How do I dissociate a program from a file type?

If I have a file with the extension .class and I opened it with Notepad. How do I destroy that association so that Notepad is not associated with the .class file type? I do not want to change the ....
joshreesjones's user avatar
7 votes
3 answers
2k views

What in the world is a .el8 file?

I am taking an online Latin class, and they gave me a video to watch. A .el8. What? el8? I have never heard of that in my life. It's supposed to be a video, so I tried renaming it to a .mov (Latin ...
user avatar
7 votes
3 answers
463 views

Why does Windows append .php to my php files but not other ones

I have many different types of files in a folder - .php, .css, .htm, .js, .docx, .xls, etc. The only file type that Windows (viewed from Windows Explorer) actually shows the extension are the .php ...
user avatar
7 votes
4 answers
4k views

What does X denotes in ASPX, DOCX, XLSX, PPTX etc?

Previously there were ASP, DOC, XLS, PPT etc and now ASPX, DOCX, XLSX, PPTX respectively. What does X denotes in ASPX, DOCX, XLSX, PPTX etc?
Manish's user avatar
  • 201
7 votes
3 answers
2k views

Is it safe to delete files with extensions containing non-alphanumeric characters?

I was working with Eagle 4.16r2 (Yes I know its old), and when I work on my project in it, I happen to save my work frequently as files with extensions .brd and .sch. I just did a backup and now I ...
Mike -- No longer here's user avatar
7 votes
2 answers
20k views

Convention for file extensions: uppercase or lowercase

Is there a convention for the case of the file extension in Windows, i.e. all uppercase vs. all lowercase? If there is, what is the reason, if any, for the convention, or is it just for the purposes ...
rory.ap's user avatar
  • 496
7 votes
4 answers
892 views

Are you allowed to come up with any desired file extension (for Unix, Linux, Windows)?

I want to create a file called "message" that contains text only. How does the system know what program to use to read it if I decide to call it: message.txt? message.dat? message.enc? message.cpz? ...
Dark Templar's user avatar
  • 2,619
7 votes
1 answer
3k views

Why does my Windows open CSS file with notepad?

In CMD I get this: C:\>assoc .css .css=CSSfile C:\>ftype CSSfile File type 'CSSfile' not found or no open command associated with it. But in explorer, CSS files have icon and I can double ...
Gqqnbig's user avatar
  • 449
7 votes
3 answers
3k views

"file.myext" is not a valid Win32 application

I have written a registry that creates .myext. Double-clicking on my file.myext refers to my executable file (converted from a batch file that opens a .jar) which then opens my notepad application. ...
user avatar
6 votes
1 answer
18k views

Is there a difference between .JPG and .jpg?

Files that have uppercase extensions (specifically .JPG) are not opening or being recognized in Windows Live Photo Gallery. .jpg files work as expected. What could be causing this issue?
Marco Mn's user avatar
6 votes
2 answers
6k views

How does a file have no extension?

Take for instance: cat /etc/passwd Why doesn't this file have an extension such as *.txt*, *.dat*, etc? Or does an extension exist, but it's just being hidden? Does this apply strictly to Unix-like ...
Dark Templar's user avatar
  • 2,619
6 votes
4 answers
8k views

Windows wildcards with files having more than 3 characters extensions

On Windows 7, I have a directory containing the following four files: xxx.txt xxx.txt2 xxx2.txt xxx2.txt2 With the file have more than 3 character as a file extension, the behavior of the wildcard * ...
tristof's user avatar
  • 105
6 votes
4 answers
21k views

How can I unassociate a file type from a program without a registry edit?

I accidentally configured .data and .text files to be opened with Notepad by default. I want to unlink those extensions from being opened by Notepad. However, Notepad does not appear in the list of ...
Nzall's user avatar
  • 3,007
6 votes
2 answers
1k views

Windows file association for README, INSTALL, LICENSE and the like [duplicate]

Possible Duplicate: How to set the default program for opening files without an extension in Windows? Many files originating in the UNIX world come without file extension. Popular examples ...
Lumi's user avatar
  • 1,587
6 votes
3 answers
15k views

Way to search & find Files or Folders with no Extension in Windows

How do i search files with no extension? For best effect i would like only <4kb and if i could search inside for the text thewordiwant I also have visual studios but i dont think writing ...
user avatar
6 votes
2 answers
7k views

How to create a default association for files with no extension [duplicate]

Possible Duplicate: How to set the default program for opening files without an extension in Windows? I am using http://www.pnotepad.org/ (i wouldnt mind switching to something else if it ...
user avatar
6 votes
1 answer
9k views

Why should one prefer lower case file extensions like .jpg over uppercase ones like .JPG?

Many (most?) programs note file extensions in lower case. ls command in bash even prints foo.jpg highlighted as picture by default but not *.JPG. Lower case characters are better to distinguish from ...
Jonas Stein's user avatar
  • 1,122
6 votes
1 answer
12k views

What's the difference between an *.ova file and a *.ovf file when exporting from VirtualBox?

I'm trying to export a Virtual Machine I have on VirtualBox so I can back it up, and when I went to export it, I was prompted with a "Save As..." dialog that asks me if I want to save it as a .ovf or ...
leeand00's user avatar
  • 22.7k
5 votes
4 answers
938 views

Should all plain text files have some sort of suffix (e.g. *.txt, *.conf)

I create many notes in plain text files, but after a while the .txt suffix I put at the end of them seems to be unnecessary typing and visual noise. Is appending .txt to plain text files a strongly ...
dan's user avatar
  • 7,487
5 votes
3 answers
1k views

How can I run a (16-bit) .COM executable that has been renamed to .COS?

I'm trying to run a couple of 16-bit legacy DOS programs from a standard Windows XP DOS prompt. The problem is that the file extensions have been renamed from .COM to .COS and they are stored on read-...
max16bit's user avatar

1
2 3 4 5
7