4.3 Where Data is Stored Flashcards

1
Q

Data Storage

contain essential binaries for sys admin such as parted or ip

A

/sbin

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

Data Storage

contain essential binaries for all users such as ls, mv or mkdir

A

/bin

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

Data Storage

stores binaries for sys admin such as deluser or groupadd

A

/usr/sbin

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

Data Storage

includes most executable files such as
free, pstree, sudo or man - useable by all users

A

/usr/local/sbin

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

Data Storage

serves same purpose as /uar/local/sbin but for regular user programs

A

/user/local/bin

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

Data Storage

which command to find out the location of the

which swapon

output

root?

A

/sbin/swapon

yes

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

Data Storage

which command to find out the location of the

which kill

output

root?

A

/bin/kill

no

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

Data Storage

which command to find out the location of the

cut kill

output

root?

A

/usr/bin/cut

no

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

Data Storage

which command to find out the location of the

cut usermod

output

root?

A

/usr/sbin/usermod

Yes

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

Data Storage

which command to find out the location of the

cut cron

output

root?

A

/usr/sbin/cron

Yes

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

Data Storage

which command to find out the location of the

cut ps

output

root?

A

Data Storage

/bin/ps

No

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

Data Storage

where is the .bashrc file found

A

~

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

Data Storage

where is the bash.basrc file found

A

/etc

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

Data Storage

where is the passwd file found

A

/etc

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

Data Storage

where is the .profile file found

A

~

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

Data Storage

where is the resolv.conf file found

A

/etc

17
Q

Data Storage

where is the sysctl.conf file found

A

/etc

18
Q

Data Storage

number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot

Kernel Version

A

4

19
Q

Data Storage

number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot

Major Revision

A

15

20
Q

Data Storage

number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot

Minor Revision

A

0

21
Q

Data Storage

number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot

Patch number

A

50

22
Q

Data Storage

what command would you use to list all hard drives and partitions in /dev

A

ls /dev/sd*

23
Q

Data Storage

old IDE drive representation

A

/dev/hd*

24
Q

Data Storage

modern NVMe drive representation

A

/dev/nvme*

25
Q

Data Storage

compare contents of /proc/meminfo to the output of the free command

free output /proc/meminfo field

A

total MemTotal/SwapTotal

26
Q

Data Storage

compare contents of /proc/meminfo to the output of the total command

free output /proc/meminfo field

A

free MemFree/SwapFree

27
Q

Data Storage

compare contents of /proc/meminfo to the output of the shared command

free output /proc/meminfo field

A

shared Shmem

28
Q

Data Storage

compare contents of /proc/meminfo to the output of the buff/cache command

free output /proc/meminfo field

A

buff/cache Buffers, Cached and SReclaimable

29
Q

Data Storage

compare contents of /proc/meminfo to the output of the available command

free output /proc/meminfo field

A

available MemAvailable

30
Q

Data Storage

Every process has a unique identifier

A

PID

31
Q

Data Storage

parent process identifier

A

PPID

32
Q

Data Storage

command to dynamically and interactively explore the running processes of the tystem

A

top

33
Q

Data Storage

print kernel ring buffer

A

dmesg

34
Q

Data Storage

query the systemd journal

A

journalctl