Labsim Section 7.4 Flashcards

(22 cards)

1
Q

df

A

Display the free space in the partition holding the specified directory. If directory is given, the space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks by default.

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

du

A

Display files and file sizes in and below a specified directory.

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

lsof

A

Display open files in the file system.

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

fuser

A

Check and optionally repair one or more Linux file systems.

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

e2fsck

A

Check and optionally repair a second extended file system (ext2) or ext2 files systems containing a journal (ext3).

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

debugfs

A

Debug the file system. The command examines and changes the state of an ext2, ext3, or ext4 file system. It allows administrators to unlink directories, change inode blocks find all inodes that point to a block, and several other similar functions

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

dumpe2fs

A

Print super block and block information for an ext2, ext3, or ext4 file system. This includes information for each sector on the partition about sector type, block ranges, inode information, free blocks, and similar information.

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

tune2fs

A

Adjust tunable file system parameters on ext2, ext3, and ext4 file systems. Some of the adjustable parameters include volume label, reserved blocks, inode sizes, and journaling. Tune2fs can also implement access control lists for individual users.

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

xfs_info

A

Display the XFS file system parameters, such as the block size and inode data structures. This is the same functionality as the xfs_growfs -n command.

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

xfs_metadump

A

Copy (dump) the metadata from an XFS file system to a file. It does not alter the file system. By default, the file names and extended attribute names are obfuscated before they are dumped.

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

Print blocks that are bad in the file system?

A

dumpe2fs -b

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

Display XFS system file parameters.

A

xfs_info; xfs_growfs -n

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

What option for debugfs should you use to examine the filesystem?

A

debugfs -c

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

How do you determine if any of the files in /bin are corrupt?

A

Use an integrity checking program to check the files in /bin.

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

Which e2fsck option will repair damage to the filesystem without any interaction from the user?

A

e2fsck -p

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

Which command will display all the available disk space on all partitions?

17
Q

Which commands do you use to copy all the files from the drive /deb/sdb1, which has an XFS file system, to the /reviewxfs file?

A

xfs_metadump -o /dev/sdb1 /reviewxfs

18
Q

Which command will show you the amount of free space in the /sales directory?

19
Q

What command and option should you use to convert the filesystem of /dev/sdb3 from ext2 to ext3 without affecting the data on the drive?

A

tune2fs -j /dev/sdb3

20
Q

How do you check the filesystem on sda2 and fix the errors for a user who has complained of filesystem errors reported during booting?

A

Change to single user mode and run fsck /dev/sda2

21
Q

What is the effect of tune2fs -j /dev/sdb1 command?

A

Converts the /dev/sdb1 device to ext3

22
Q

Which command allows you to use an alternative superblock when the primary superblock has been corrupted?

A

e2fsck -b 16385 /dev/sda1