ch5.2 Storage - Management, Directory Structure Flashcards

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
Q

xfs_db

A

Bash command to debug an xfs file system

26
Q

fcstat

A

Bash command to interact with and display statistics of Fibre Channel connected devices

-e for all statistics

27
Q

What is a Directory?

A

A container for other files

28
Q

What are Special Files?

A

System files stored in the /dev directory

29
Q

What is a Link file?

A

A file that make a file accessible in multiple parts of the system’s file tree similar to a windows shortcut

30
Q

What are Domain Sockets?

A

Files that provide inter-process networking that is protected by the file system’s access control

31
Q

What are Named Pipes?

A

Files that enable processes to communicate with each other without using network sockets

32
Q

Filesystem Hierarchy Standard (FHS)

A

A set of guidelines for the names of files and directories and their locations on Linux systems

33
Q

/bin

A

Stores essential command-line utilities and binaries

34
Q

/boot

A

Stores the files necessary to boot the Linux operating system

35
Q

/dev

A

Stores hardware and software device drivers

36
Q

/etc

A

Stores basic configuration files

37
Q

/home

A

Stores users’ home directories, including personal files

38
Q

/lib

A

Stores shared program libraries required by the kernel, command-line utilities, and binaries

39
Q

/media

A

Stores mount points for removable media such as CD-ROMs and floppy disks

40
Q

/mnt

A

Refers to the mount point for temporary mounting file systems

41
Q

/opt

A

Stores optional files for large software packages

42
Q

/proc

A

Represents continually updated kernel information to the user in a typical file format

43
Q

/root

A

Refers to the home directory of the root user

44
Q

/sbin

A

Stores binaries used for completing the booting process which are also used by the root user

45
Q

/sys

A

Stores information about devices

46
Q

/tmp

A

Stores temporary files that may be lost on system shutdown

47
Q

/usr

A

A read-only directory that stores small programs and files accessible to all users

48
Q

/var

A

Stores variable files, or files that are expected to constantly change while the system is running

49
Q

important /usr subdirectories

A

/usr/bin
/usr/local
/usr/lib
/usr/lib64
/usr/share

50
Q

/usr/bin

A

executable programs common to all users

51
Q

/usr/local

A

custom built applications stored here by default

52
Q

/usr/lib

A

object libraries and internal binaries needed by executable programs

53
Q

/usr/lib64

A

object libraries and internal binaries needed by executable programs but meant for 64 bit systems

54
Q

/usr/share

A

read-only architecture independent files that can be shared among different architectures of an operating system

55
Q

Current Working Directory (CWD)

A

Location of current user access

Can be accessed using the “.” shorthand

56
Q

Parent Directory

A

Directory above the CWD

Can be accessed using the “..” shorthand

57
Q

What type of slash do Linux and Windows use in their file system?

A

Linux uses forward slashes

Windows uses back slash

58
Q

Relative Path

A

A file path that starts at the Current Working Directory

59
Q

pwd

A

Bash command that prints the Current Working Directory