O'Reilly logo

Raspberry Pi For Dummies by Mike Cook, Sean McManus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Top Tips for Naming Your Files in Linux

If you plan to use the shell, you can follow a few guidelines when creating files that will make your Linux life much easier. These tips apply even if you’re creating files using the desktop environment, but it only really matters when you start working with files in the shell.

Here’s our advice:

check.png Only use lowercase so you don’t have to remember where the capital letters are in a filename.

check.png Don’t use filenames with spaces. They have to be treated differently in the shell (put inside single or double quote marks); otherwise, Linux thinks each of the words in the filename is a different file. An underscore is a good substitute.

check.png Don’t use filenames that start with a hyphen. They’re liable to get confused with command options.

check.png Don’t use the / character anywhere in a filename.

check.png Avoid using an apostrophe (), question mark (?), asterisk (*), quotation (speech) marks (“), slash (\), square brackets ([]), or curved braces ({}). If they appear in a filename ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required