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..?

A

slide 7

23
Q

For directory structure see…?

A

slide 8

24
Q

For hardlinks see slide…?

A

9

25
Q

For soft links see slide…?

A

10

26
Q

Hardlinks cannot…?

A

hard link directories.

27
Q

Hardlinks have no…?

A

concept of “original” and “copy”

28
Q

Hard links must…?

A

refer to files in the same filesystem.

29
Q

Softlinks can….?

A

Softlink directories.

30
Q

Soft links have a…?

A

concept of “referrer” and “referred”. Removing the “reffered” file results in a dangling referrer.

31
Q

Soft links may span…?

A

filesystems (partitions).

32
Q

Linux allows low level access to disk drive through…?

A

device nodes in the /dev directory. (See slide 12)

33
Q

While devices hold the data they must…?

A

be prepared and made available. (see slide 13)

34
Q

Filesystems are created with some variant of the…?

A

mkfs command.

35
Q

The default filesystem of Red Hat Enterprise Linux 5.2 is…?

A

the ext3 filesystem.

/sbin/mkfs.ext2/dev/fd0

36
Q

The mount command is used to…?

A

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
Q

The umount command is used to…?

A

unmount a fileystem from a mount point

38
Q

The df command is used to …?

A

report filesystem usage, and tables currently mounted devices.

39
Q

Permanent and Temporary Mounts…?

A

Slide 16 example.

40
Q

By default, only the root user can…?

A

mount and unmount devices (Console user are the exception).

41
Q

A filesystem can only be unmounted if it is…?

A

considered “non-busy”

42
Q

The GNOME graphical environment runs an automounter, which …?

A

keeps an eye on the CD/ROM drive, and will automatically mount the filesystem of any newly inserted disk.

43
Q

In order to improve performance, the kernel buffers all…?

A

block device (harddrive) interactions so you must umount to ensure these buffers are flushed to disk.

44
Q

Advanced File Commands:

Locate and find…?

A

Used to locate/find files within the fie system. Locate and find work in different ways.

45
Q

Advanced File Commands:

gzip and bzip2..?

A

Used to compress/decompress a datastream.

46
Q

Advanced File Commands:

tar…?

A

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.