Naming a File in Linux
There are certain rules to follow while naming a file in Linux. There are two rules to follow:
- In older version of UNIX, the total number of characters in a file name is limited to 14. In most of the newer versions the total number of characters can reach up to 255 characters.
- Any character combination can be used to name a file, but sometimes it may cause some problem to freshers because there are certain character combinations which have special meaning in Linux. For example, ‘-t‘ used with ‘ls‘ have the power to list the files in the order of time. But if we create a file named ‘-t‘, it will be difficult to list it with name.
Another important thing is, the names are case sensitive. i.e. ‘Name’ and ‘name’ are different file names.
Files in different directories can have same name without any conflicts.