4.3 Where Data is Stored Flashcards
Data Storage
contain essential binaries for sys admin such as parted or ip
/sbin
Data Storage
contain essential binaries for all users such as ls, mv or mkdir
/bin
Data Storage
stores binaries for sys admin such as deluser or groupadd
/usr/sbin
Data Storage
includes most executable files such as
free, pstree, sudo or man - useable by all users
/usr/local/sbin
Data Storage
serves same purpose as /uar/local/sbin but for regular user programs
/user/local/bin
Data Storage
which command to find out the location of the
which swapon
output
root?
/sbin/swapon
yes
Data Storage
which command to find out the location of the
which kill
output
root?
/bin/kill
no
Data Storage
which command to find out the location of the
cut kill
output
root?
/usr/bin/cut
no
Data Storage
which command to find out the location of the
cut usermod
output
root?
/usr/sbin/usermod
Yes
Data Storage
which command to find out the location of the
cut cron
output
root?
/usr/sbin/cron
Yes
Data Storage
which command to find out the location of the
cut ps
output
root?
Data Storage
/bin/ps
No
Data Storage
where is the .bashrc file found
~
Data Storage
where is the bash.basrc file found
/etc
Data Storage
where is the passwd file found
/etc
Data Storage
where is the .profile file found
~
Data Storage
where is the resolv.conf file found
/etc
Data Storage
where is the sysctl.conf file found
/etc
Data Storage
number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot
Kernel Version
4
Data Storage
number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot
Major Revision
15
Data Storage
number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot
Minor Revision
0
Data Storage
number elements for kernel file vmlinuz-4.15.0-50-generic found in /boot
Patch number
50
Data Storage
what command would you use to list all hard drives and partitions in /dev
ls /dev/sd*
Data Storage
old IDE drive representation
/dev/hd*
Data Storage
modern NVMe drive representation
/dev/nvme*
Data Storage
compare contents of /proc/meminfo to the output of the free command
free output /proc/meminfo field
total MemTotal/SwapTotal
Data Storage
compare contents of /proc/meminfo to the output of the total command
free output /proc/meminfo field
free MemFree/SwapFree
Data Storage
compare contents of /proc/meminfo to the output of the shared command
free output /proc/meminfo field
shared Shmem
Data Storage
compare contents of /proc/meminfo to the output of the buff/cache command
free output /proc/meminfo field
buff/cache Buffers, Cached and SReclaimable
Data Storage
compare contents of /proc/meminfo to the output of the available command
free output /proc/meminfo field
available MemAvailable
Data Storage
Every process has a unique identifier
PID
Data Storage
parent process identifier
PPID
Data Storage
command to dynamically and interactively explore the running processes of the tystem
top
Data Storage
print kernel ring buffer
dmesg
Data Storage
query the systemd journal
journalctl