OS515-Week5_Lecture Flashcards

1
Q

See slide two for the…?

A

Basic anatomy of a regular file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

See slide three for the…?

A

What is an inode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the abbreviation and use of Regular File…?

A

abbreviation : -

Used for storing data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the abbreviation and use of Directories…?

A

abbreviation : d

Used for Organizing files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the abbreviation and use of Symbolic Links…?

A

abbreviation : l

Used for Referring to other files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the abbreviation and use of Character Device Nodes…?

A

abbreviation : c

Used for Accessing devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the abbreviation and use of Block Device Nodes…?

A

abbreviation : b

Used for Accessing devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the abbreviation and use of Named Pipes…?

A

abbreviation : p

Used for Interprocess communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the abbreviation and use of Sockets…?

A

abbreviation : s

Used for Interprocess communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

See Slide 5 for the …?

A

stat command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Viewing inode information with ls:

what does the -a or –all switch do when used with ls…?

A

Include files that start with .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Viewing inode information with ls:

what does the -d or –directory switch do when used with ls…?

A

If FILE is a directory, list information about the directory itself, not the directory’s contents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Viewing inode information with ls:

what does the -F or –classify switch do when used with ls…?

A

Decorate filenames with one of *,/,=,@, or | to indicate file type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Viewing inode information with ls:

what does the -h or –human-readable switch do when used with ls…?

A

Use “human readable” abbreviations when reporting file lengths.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Viewing inode information with ls:

what does the -i or –inode switch do when used with ls…?

A

List index number of each file’s inode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Viewing inode information with ls:

what does the -l switch do when used with ls…?

A

Use long listing format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Viewing inode information with ls:

what does the -n or –numeric-uid-gid switch do when used with ls…?

A

Use numeric UIDs and GIDs, rather then usernames and groupnames.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Viewing inode information with ls:

what does the -r or –reverse switch do when used with ls…?

A

Reverse sorting order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Viewing inode information with ls:

what does the -R or –recursive switch do when used with ls…?

A

List subdirectories recursively.

20
Q

Viewing inode information with ls:

what does the –time=WORD switch do when used with ls…?

A

Report (or sort by) time specified by WORD instead of mtime. WORD may be one of “atime”, “access”, “ctime”, or “status”.

21
Q

Viewing inode information with ls:

what does the -t switch do when used with ls…?

A

Sort by modification time.

22
Q

For an example of ls -l see..?

23
Q

For directory structure see…?

24
Q

For hardlinks see slide…?

25
For soft links see slide...?
10
26
Hardlinks cannot...?
hard link directories.
27
Hardlinks have no...?
concept of "original" and "copy"
28
Hard links must...?
refer to files in the same filesystem.
29
Softlinks can....?
Softlink directories.
30
Soft links have a...?
concept of "referrer" and "referred". Removing the "reffered" file results in a dangling referrer.
31
Soft links may span...?
filesystems (partitions).
32
Linux allows low level access to disk drive through...?
device nodes in the /dev directory. (See slide 12)
33
While devices hold the data they must...?
be prepared and made available. (see slide 13)
34
Filesystems are created with some variant of the...?
mkfs command.
35
The default filesystem of Red Hat Enterprise Linux 5.2 is...?
the ext3 filesystem. | /sbin/mkfs.ext2/dev/fd0
36
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.
37
The umount command is used to...?
unmount a fileystem from a mount point
38
The df command is used to ...?
report filesystem usage, and tables currently mounted devices.
39
Permanent and Temporary Mounts...?
Slide 16 example.
40
By default, only the root user can...?
mount and unmount devices (Console user are the exception).
41
A filesystem can only be unmounted if it is...?
considered "non-busy"
42
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.
43
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.
44
Advanced File Commands: | Locate and find...?
Used to locate/find files within the fie system. Locate and find work in different ways.
45
Advanced File Commands: | gzip and bzip2..?
Used to compress/decompress a datastream.
46
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.