How does one turn on file name extentions in Linux so Dolphin will show "myfile.txt"

In Microsoft Windows, I can enable or disable file name extensions. I always want extensions on. Like “myfile.txt” instead of just “myfile”. That way I can tell the file type right away. I searched the Dolphin documentation but didn’t find anything. I also looked in the Dolphins settings, but found nothing to enable this. Can this be enabled with Linux?

Thanks…

Linux does not use file extensions but instead probes for the file type and automatically decides what the file is. Dolphin by default already shows the full file name if it has an extension (usually copied from Windows or other systems).

If you want, you can go to Details View Mode and then right click on the bar where it says Name, Size, Date and choose “Type”.

Linux is not Windows and Windows is not Linux.

Unix/Linux has no concept of file extentions. However you can give file names to your liking and thus when you want to give files which have a (special to you) type of contents, you can of course give them names that have a suffix like .text.

Many applications on the other hand use that same type of “AHA” when they are offered files which have names with particular suffixes (or they create such file names by default).

You do not tell which desktop you use (I guess KDE because of you mentioning Dolphin) and KDE also uses a lot of these suffixes to be able to start the most fitting application for them. They are predefined in KDE and you can change that configuration through System Settings > File name Associations.

But please be aware of the fact that these are only character combinations at the end of a file name and there are no world-wide definitions for usage.

Look at this:

henk@boven:~/test/bestanden> ls -l
totaal 324
-rw-r--r--  1 henk wij   3964 10 mei  2013 ASH.html
-rw-r--r--  1 henk wij    796 10 mei  2013 index.html
-rw-r--r--  1 henk wij 157943 10 mei  2013 verf.gif
-rw-r--r--  1 henk wij 157943 10 mei  2013 verf.jpeg
-rw-r--r--  1 henk wij    122 10 mei  2013 WARNING_README.txt
henk@boven:~/test/bestanden>

That may give you an idea about what is in those files. The file tool is good in checking these things:

henk@boven:~/test/bestanden> file *
ASH.html:           HTML document, UTF-8 Unicode text
index.html:         HTML document, ASCII text
verf.gif:           JPEG image data, JFIF standard 1.01
verf.jpeg:          JPEG image data, JFIF standard 1.01
WARNING_README.txt: ASCII text
henk@boven:~/test/bestanden>

and note that verf.gif and verf.jpeg are straight file copies of each other!

Good enough, that works! :slight_smile:

Correct, it is KDE in openSUSE 13.2

Thanks! :slight_smile: