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
For soft links see slide…?
10
Hardlinks cannot…?
hard link directories.
Hardlinks have no…?
concept of “original” and “copy”
Hard links must…?
refer to files in the same filesystem.
Softlinks can….?
Softlink directories.
Soft links have a…?
concept of “referrer” and “referred”. Removing the “reffered” file results in a dangling referrer.
Soft links may span…?
filesystems (partitions).
Linux allows low level access to disk drive through…?
device nodes in the /dev directory. (See slide 12)
While devices hold the data they must…?
be prepared and made available. (see slide 13)
Filesystems are created with some variant of the…?
mkfs command.
The default filesystem of Red Hat Enterprise Linux 5.2 is…?
the ext3 filesystem.
/sbin/mkfs.ext2/dev/fd0
The mount command is used to…?
map the root directory of a disk’s (or a disk partition’s) filesystem to an already existing directory. That directory is then referred to as a mount point.
The umount command is used to…?
unmount a fileystem from a mount point
The df command is used to …?
report filesystem usage, and tables currently mounted devices.
Permanent and Temporary Mounts…?
Slide 16 example.
By default, only the root user can…?
mount and unmount devices (Console user are the exception).
A filesystem can only be unmounted if it is…?
considered “non-busy”
The GNOME graphical environment runs an automounter, which …?
keeps an eye on the CD/ROM drive, and will automatically mount the filesystem of any newly inserted disk.
In order to improve performance, the kernel buffers all…?
block device (harddrive) interactions so you must umount to ensure these buffers are flushed to disk.
Advanced File Commands:
Locate and find…?
Used to locate/find files within the fie system. Locate and find work in different ways.
Advanced File Commands:
gzip and bzip2..?
Used to compress/decompress a datastream.
Advanced File Commands:
tar…?
Used to create an archive of files (early uses were to archive files to tape), and can be used with zgip/bizp2 to create compressed archives.