Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to hide all file extensions like in Windows?

share|improve this question
Just put a "." in front of the whole file name, and you can have the whole filename hidden -- which is just about as useful. (Sorry, couldn't resist. The whole idea of hiding partial filenames is/was/always will be a horrible idea, in any operating system.) – michael_n Jan 12 '12 at 8:58
up vote 5 down vote accepted

As far as I know there is no way to acheive this. The Nautilus file manager doesn't seem to have this option in its preferences and for good reason.

File extensions are fake

By which I mean, in Linux, they are simply part of the file name and have no special meaning like in Windows. In Windows, there is a distinction between file names and their extensions whereas in Linux, the 'extension' is just the part of the name, if any, after a '.'. Linux allows the '.' character to be used as part of the file name but Windows reserves it for separating the file extension. Windows uses this file extension to determine how the file should behave but Linux uses MIME types.

This means that there is no reliable way for a file manager to hide the file extension - '.' can be used anywhere in a file name so hiding file extensions may hide part of the file name - this behaviour would be confusing. File extensions are only used to make it easier for a user to tell what type of file they are dealing with - hiding this would hide useful information.

share|improve this answer
They are not that fake. Extension are used to determine MIME Type, so at the end it works just like windows (mostly). Change the extension of any random file in Nautilus and you will see that its icon will change and it will open with a different program. – Javier Rivera Dec 15 '10 at 12:19
Extensions are used as a last resort to determine the MIME type. Nautilus attempts to first determine the file type by looking at the contents of the file. – dv3500ea Dec 17 '10 at 11:57

Other than in Windows file extensions are not needed for files in Ubuntu. However they are used for convenience when it comes to sort out files according to their content. Therefore extensions are more like a fixed part of the filename and thus will always be displayed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.