Filenames and file types

Key Point

💡 Use all-lowercase, and separate words with hyphens.

Make file and directory names lowercase. Separate words with hyphens, not underscores. Use standard ASCII alphanumeric characters in file and directory names.

Referring to file types

Key Point

💡 Use the formal file type name, not the filename extension.

When you're discussing a file type, use the formal name of the type. (The file type name is often in all caps, because many file type names are acronyms or initialisms.)

Do not use the filename extension to refer generically to the file type.

👍 Recommended: a PNG file

👎 Not recommended: a .png file

👍 Recommended: a Bash file

👎 Not recommended: an .sh file

Last Updated: 6/13/2019, 2:10:37 PM