ch5.2 Storage - Management, Directory Structure Flashcards

(59 cards)

1
Q

/etc/mtab file

A

reports the status of currently mounted file systems but /proc/mounts is similar but usually more accurate and more up-to-date

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

/proc/partitions file

A

part of the virtual file system and contains info on each partition attached to the system

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

format of /proc/partitions file

A

columns named major, minor, #blocks, and name

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

lsblk

A

Bash command that displays info about block storage devices currently available on the system

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

lsblk syntax and options
-a
-r
-f
-l
-m

A

lsblk [options] [device name]
-a list empty devices
-r list devices excluding provided ouput devices
-f display additional information
-l display results in list format
-m display device permission information

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

blkid

A

prints each block device in a flat format and includes some additional information

probably not as useful as lsblk -f

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

blkid syntax

A

blkid [options] [device name]

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

most useful tools to manage an ext style file system

A

e2fsck
resize2fs
tune2fs
dumpe2fs

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

fsck

A

Bash command to check the correctness and validity of a file system

Most systems run this command at boot so that any errors can be detected and corrected before the system can be used

A file system must be unmounted before it can be scanned by this command

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

fsck syntax and options
-r

A

fsck [options] [device/file system name]
-r repair file system

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

resize2fs description

A

Bash command to resize ext2, ext3, or ext4 file systems

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

resize2fs syntax

A

resize2fs [options] [device/file system name] [desired size]

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

tune2fs

A

Bash command to confirm and adjust various tunable parameters of the ext2/ext3 file systems

can also add a journal to an existing ext2 or ext3 file system

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

tune2fs syntax and options
-j
-i
-c
-C
-r
-e
-l
-U

A

tune2fs [options] [device/file system name]
-j used as an ext3 journal to the existing file
-i [d|m|w] specify the maximum time interval
-c specify the maximum number of mounts
-C specify the number of possible mounts
-r specify the number of reserved file system blocks
-e specify the behavior of the kernel code
-l list the contents within the superblock
-U set the specified UUID

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

Superblock

A

a record of the characteristics of a filesystem including it’s size, type, and status

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

dumpe2fs

A

Bash command that prints the superblock and block group information for the selected device using an ext2, ext3, or ext4 file system

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

dumpe2fs syntax and options
-x
-b
-f
-i

A

dumpe2fs [options] [device/file system name]
-x Print a detailed report about block numbers
-b Print the bad blocks
-f Force print the file system status regardless of file system flags
-i Print file system data from an image file created using e2image command

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

lsscsi

A

Bash command used to list information about SCSI devices connected to a Linux system

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

xfs_info

A

Bash command to print details about the xfs file system

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

xfs_admin

A

Bash Command to change the parameters of an xfs file system

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

xfs_metadump

A

Bash command to copy the superblock metadata of the xfs file system to a file

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

xfs_growfs

A

Bash command to expand the xfs file system to fill the drive size

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

xfs_copy

A

Bash command to copy the contents of the xgs file system to another location

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

xfs_repair

A

Bash command to repair and recover a corrupt xfs file system

25
xfs_db
Bash command to debug an xfs file system
26
fcstat
Bash command to interact with and display statistics of Fibre Channel connected devices -e for all statistics
27
What is a Directory?
A container for other files
28
What are Special Files?
System files stored in the /dev directory
29
What is a Link file?
A file that make a file accessible in multiple parts of the system's file tree similar to a windows shortcut
30
What are Domain Sockets?
Files that provide inter-process networking that is protected by the file system's access control
31
What are Named Pipes?
Files that enable processes to communicate with each other without using network sockets
32
Filesystem Hierarchy Standard (FHS)
A set of guidelines for the names of files and directories and their locations on Linux systems
33
/bin
Stores essential command-line utilities and binaries
34
/boot
Stores the files necessary to boot the Linux operating system
35
/dev
Stores hardware and software device drivers
36
/etc
Stores basic configuration files
37
/home
Stores users' home directories, including personal files
38
/lib
Stores shared program libraries required by the kernel, command-line utilities, and binaries
39
/media
Stores mount points for removable media such as CD-ROMs and floppy disks
40
/mnt
Refers to the mount point for temporary mounting file systems
41
/opt
Stores optional files for large software packages
42
/proc
Represents continually updated kernel information to the user in a typical file format
43
/root
Refers to the home directory of the root user
44
/sbin
Stores binaries used for completing the booting process which are also used by the root user
45
/sys
Stores information about devices
46
/tmp
Stores temporary files that may be lost on system shutdown
47
/usr
A read-only directory that stores small programs and files accessible to all users
48
/var
Stores variable files, or files that are expected to constantly change while the system is running
49
important /usr subdirectories
/usr/bin /usr/local /usr/lib /usr/lib64 /usr/share
50
/usr/bin
executable programs common to all users
51
/usr/local
custom built applications stored here by default
52
/usr/lib
object libraries and internal binaries needed by executable programs
53
/usr/lib64
object libraries and internal binaries needed by executable programs but meant for 64 bit systems
54
/usr/share
read-only architecture independent files that can be shared among different architectures of an operating system
55
Current Working Directory (CWD)
Location of current user access Can be accessed using the "." shorthand
56
Parent Directory
Directory above the CWD Can be accessed using the ".." shorthand
57
What type of slash do Linux and Windows use in their file system?
Linux uses forward slashes Windows uses back slash
58
Relative Path
A file path that starts at the Current Working Directory
59
pwd
Bash command that prints the Current Working Directory