How does a file have no extension

file extensionfile managementfilesystems

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 systems?

Best Answer

There is no extension. There's no reason for one. This isn't unique to Unix. You don't have to have a file extension in Unix or Windows. Windows won't know what to do with the file if you double-click it, but the program that made it probably does.

Related Question