filesAndFolders.ppt

Download Report

Transcript filesAndFolders.ppt

files and folders
Unix file system organization
• Review (since you just turned in hw1 part I)
• directory: place where UNIX keeps information
(like a folder in Windows)
• A directory can contain
– other directories (called subdirectories)
– files
• Every directory is a subdirectory of its parent
• The world starts at the only directory with no
parent: the root directory, called “/”
• Path from root to the directory containing the Bank
simulation Java program looks like this:
/users/courses/cs110/f01/PUBLIC/joi/1/bank
ls (list) directory contents
mars:/users/tnliu:> cd $CS110
mars:/users/courses/cs110/s01/PUBLIC> ls
classes/ examples/ handouts/ hw1/ joi/ src/
• suffixes - not part of file name
/ for directory
@ for link (your cs110 directory is really
elsewhere)
* for executable (you may not have seen one)
change directories
• dot and dot dot