S5 version | Table of Contents (frame/ no frame) |
(12) File System |
File names
Files and directories (folders) can be named almost anything, as long as they do not contain "/" (since it has to separate directories in a path). In practice, many programs will get confused if filenames contain spaces and certain punctuation characters. Safe characters are [a-zA-Z0-9-_.]. Mixed case is allowed and all operations are case sensitive (unlike Mac and Windows). In particular, " and ' can be placed in filenames easily on Macs and then transferred to Unix - legal, but can cause headaches. Some old Unix systems had a 14-character limit; current ones have essentially no limit. Macs and Windows have a 32-character limit. Macs and Windows preserve case for display, but internally treat upper and lower case as the same.
ls
ls
command lists files in a directory, and various information about the files. You will use this a lot.
ls -l
-l
flag (long) lists most of the information stored about a file.
slide13.src last modified Jan 31, 2011 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |