OS515-Week5_Lecture Flashcards Preview

Networking > OS515-Week5_Lecture > Flashcards

Flashcards in OS515-Week5_Lecture Deck (46):
1

See slide two for the...?

Basic anatomy of a regular file.

2

See slide three for the...?

What is an inode.

3

What is the abbreviation and use of Regular File...?

abbreviation : -
Used for storing data.

4

What is the abbreviation and use of Directories...?

abbreviation : d
Used for Organizing files.

5

What is the abbreviation and use of Symbolic Links...?

abbreviation : l
Used for Referring to other files.

6

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

abbreviation : c
Used for Accessing devices.

7

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

abbreviation : b
Used for Accessing devices.

8

What is the abbreviation and use of Named Pipes...?

abbreviation : p
Used for Interprocess communication.

9

What is the abbreviation and use of Sockets...?

abbreviation : s
Used for Interprocess communication.

10

See Slide 5 for the ...?

stat command.

11

Viewing inode information with ls:
what does the -a or --all switch do when used with ls...?

Include files that start with .

12

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.

13

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.

14

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.

15

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.

16

Viewing inode information with ls:
what does the -l switch do when used with ls...?

Use long listing format.

17

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.

18

Viewing inode information with ls:
what does the -r or --reverse switch do when used with ls...?

Reverse sorting order

19

Viewing inode information with ls:
what does the -R or --recursive switch do when used with ls...?

List subdirectories recursively.

20

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

21

Viewing inode information with ls:
what does the -t switch do when used with ls...?

Sort by modification time.

22

For an example of ls -l see..?

slide 7

23

For directory structure see...?

slide 8

24

For hardlinks see slide...?

9

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.