104.2 Maintain the integrity of filesystems Flashcards

1
Q

What flags of the #ls command will give you a long listing of files and directories with sizes?

A

ls -lh

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

What output does #df give?

A

File systems - used space - available space - % used - mount point of FS

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

How do you get the total of used disk space in the whole file system?

A

df –total -h

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

What command displays disk usage?

A

du

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

From what location does the command #du display disk usage?

A

From the current directory where it is run.

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

What option of the #du command will give you only the disk usage of a specified number of folders?

A

du -h –max-depth-

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

What is an inode?

A

An inode (index node) stores information about files and folders, such as permissions, ownership, and file type.

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

Are inodes infinite in a file system?

A

No, most file systems have a maximum number of inodes that it can contain.

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

What command is useful to find out how many inodes are available in the file system and how many have been used?

A

df -i

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

How can you see what inode number a file or folder has been assigned?

A

ls -i

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

How can you see how many inodes a file or folder is using?

A

du –inodes

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

What does the fsck utility do?

A

It checks the file system for errors and attempts to fix them.

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

What is a condition to run the #fsck utility?

A

Devices must be unmounted before a check can run.

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

What syntax do we use to get a report on a file system for errors?

A

fsck -r LABEL=

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

Where is the #fsck utility configured?

A

/etc/fstab

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

What utility is used to check and repair errors in ext2, etx3 and ext4 FS?

A

e2fsck

17
Q

What is the command for creating new ext2, ext3 or ext4 FS?

A

mke2fs

18
Q

What is the command to tune or adjust parameters on an ext2, ext3 or ext4 FS?

A

tune2fs

19
Q

What is xfs_repair?

A

It is a utility to repair XFS file systems if it encounters any errors.

20
Q

How do you defrag an XFS file system?

A

Use the command #xfs_fsr (FS has to be mounted)

21
Q

How do you debug an XFS file system?

A

xfs_db

22
Q

What does a block device called “sda” mean?

A

s: scsi
d: disk
a: first disk of the drive

23
Q

What does a block device called “vdb” mean?

A

v: virtual hard disk
d: disk
b: second virtual disk

24
Q

Where is the #fsck utility configured?

A

/etc/fstab

25
Q

What utility is used to check and repair errors in ext2, etx3 and ext4 FS?

A

e2fsck

26
Q

What is the command for creating new ext2, ext3 or ext4 FS?

A

mke2fs

27
Q

What is the command to tune or adjust parameters on an ext2, ext3 or ext4 FS?

A

tune2fs

28
Q

What is xfs_repair?

A

It is a utility to repair XFS file systems if it encounters any errors.

29
Q

How do you defrag an XFS file system?

A

Use the command #xfs_fsr (FS has to be mounted)

30
Q

How do you debug an XFS file system?

A

xfs_db

31
Q

What does a block device called “vdb” mean?

A

v: virtual hard disk
d: disk
b: second virtual disk