OS515-Week5_Lecture Flashcards
See slide two for the…?
Basic anatomy of a regular file.
See slide three for the…?
What is an inode.
What is the abbreviation and use of Regular File…?
abbreviation : -
Used for storing data.
What is the abbreviation and use of Directories…?
abbreviation : d
Used for Organizing files.
What is the abbreviation and use of Symbolic Links…?
abbreviation : l
Used for Referring to other files.
What is the abbreviation and use of Character Device Nodes…?
abbreviation : c
Used for Accessing devices.
What is the abbreviation and use of Block Device Nodes…?
abbreviation : b
Used for Accessing devices.
What is the abbreviation and use of Named Pipes…?
abbreviation : p
Used for Interprocess communication.
What is the abbreviation and use of Sockets…?
abbreviation : s
Used for Interprocess communication.
See Slide 5 for the …?
stat command.
Viewing inode information with ls:
what does the -a or –all switch do when used with ls…?
Include files that start with .
Viewing inode information with ls:
what does the -d or –directory switch do when used with ls…?
If FILE is a directory, list information about the directory itself, not the directory’s contents.
Viewing inode information with ls:
what does the -F or –classify switch do when used with ls…?
Decorate filenames with one of *,/,=,@, or | to indicate file type.
Viewing inode information with ls:
what does the -h or –human-readable switch do when used with ls…?
Use “human readable” abbreviations when reporting file lengths.
Viewing inode information with ls:
what does the -i or –inode switch do when used with ls…?
List index number of each file’s inode.
Viewing inode information with ls:
what does the -l switch do when used with ls…?
Use long listing format.
Viewing inode information with ls:
what does the -n or –numeric-uid-gid switch do when used with ls…?
Use numeric UIDs and GIDs, rather then usernames and groupnames.
Viewing inode information with ls:
what does the -r or –reverse switch do when used with ls…?
Reverse sorting order
Viewing inode information with ls:
what does the -R or –recursive switch do when used with ls…?
List subdirectories recursively.
Viewing inode information with ls:
what does the –time=WORD switch do when used with ls…?
Report (or sort by) time specified by WORD instead of mtime. WORD may be one of “atime”, “access”, “ctime”, or “status”.
Viewing inode information with ls:
what does the -t switch do when used with ls…?
Sort by modification time.
For an example of ls -l see..?
slide 7
For directory structure see…?
slide 8
For hardlinks see slide…?
9