The file-naming convention for regular text files

filenames

For regular *.txt text files that contain documentation and notes and such, and which are not READMEs, is there a Unix convention for naming them? Namely,

  • Should the filenames be all lowercase? camelcase? all caps?
  • Should words separated by hyphens, underscores, or escaped spaces?
  • Should short names be favored over longer, more explicit ones?

Best Answer

  • generally, unix prefers lowercase, definitely NOT all caps, READMEs are a special case and are uppercase (as with other special files like COPYING, LICENSE, etc..) - but otherwise, general (or "regular" as you call them) text files should not use uppercase.
  • either hyphens or underscores, avoid spaces - even escaped
  • somewhere in the middle: short enough that you can read it quickly and not waste space on your screen, but not so long that it will wrap around in a gui..
Related Question