












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth exploration of unix file systems and directories. Topics include the unix file hierarchy, working with directories and files, file names, pathnames, and various commands such as ls, cd, mkdir, and rmdir. Understand the concept of home directories, special directories, and the difference between absolute and relative pathnames.
Typology: Study notes
1 / 20
This page cannot be seen from the preview
Don't miss anything!













z current working directory, home directory z pathnames z list directory: ls (learn commands in general) z cd, mkdir, rmdir
z list files z organize files: what goes where
z physical storage (disks) on your machine z storage on other machines z output devices z etc.
comp / usr bin home var lib classes students faculty comp 6262- 6262- 6262- 6262-
The entire hierarchy can actuallyinclude many disk drives. z some directories can be on othercomputers / bin etc users tmp usr hollid scully
z if my current directory is my home directory z output.dat is equivalent to ./output.dat z .. is comp
z “../..” stands for two directories directly abovethe current directory /
synopsis: ls [options]… [dirNames]… { Options z [-abc]: any or all arguments within [] are optional z -a|-b : options delimited by | cannot be used together { Arguments z [expression]: entire expression within [] isrepeatable z argument … : argument is repeatable { You can mix any options with any dirNames { You can have multiple dirNames
{ ls { ls. { ls ~ { ls /home/classes { ls / { ls .. { ls -al /usr/bin { ls /usr/bin /tmp /etc { ls –l /usr /etc { ls /usr /bin -a
mkdir
{ rmdir
z files can hold any sequence of bytes
z text file, sequence of integers, databaserecords, etc.
/ z Root of the entire system z Comparable in Windows to C: (but you may haveD:, E: .. several roots) { /bin z Commonly used binaries (programs) { /sbin z More programs to run { /usr z User related commands as well as a whole bunch ofrandom stuff { /lib z Libraries go in here
/dev z All devices are located in here { /home z Traditionally, this is where user accounts are stored { /etc z Startup files and configuration files for daemons andother programs { /var z Various files go in here z Traditional location of mailboxes {
/proc z Special files that contain information about thesystem or info from running programs