Filename Best Practices on UNIX Filesystems
The following directives can prevent unintended bugs or crashes when your files and folders are ingested by scripts or software.
- Don’t use spaces in filenames, ever.
- Don’t begin filenames with
-
(used for options) or.
(reserved for hidden files). - Stick with letters, numbers,
.
(period or ‘full stop’),-
(dash) and_
(underscore). - Use at most one
.
in a filename, preferably to indicate the extension. - Avoid non-ASCII characters like
ï
or好
or in filenames.