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.

  1. Don’t use spaces in filenames, ever.
  2. Don’t begin filenames with - (used for options) or . (reserved for hidden files).
  3. Stick with letters, numbers, . (period or ‘full stop’), - (dash) and _ (underscore).
  4. Use at most one . in a filename, preferably to indicate the extension.
  5. Avoid non-ASCII characters like ï or or in filenames.