There's something about File Extensions
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
There's something about File Extensions
Is it just me, or is there like this unspoken rule in Linux that says thou shalt not use file extensions? Just wondering. A lot of txt files don't have file extensions. It's been baffling me ever since I installed Mandrake Linux on a laptop.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Pyrite
- Forum Regular
- Posts: 769
- Joined: Tue Sep 23, 2003 11:07 pm
- Location: The Republic of Texas
- Contact:
There is no problem using file extensions in Linux. It's up to you. If you use a shell like Bash with colors enabled, when you do an ls in a directory, binaries (executables) will show up green, symlinks aqua, directories blue etc etc. Some people choose to name binaries with a .bin, and you can use anything you want really. In Linux though, it is easy to tell by the directory you are in, for instance, you can bet everything in /usr/bin is a binary, or everything in /etc is a text file / script. In your home directory, it is up to you.