Quiz digest Flashcards
what does the host command do?
Lookup A, AAAA, and MX records of a domain,
or reverse DNS lookup
very similar to nslookup and dig
what does the dmesg command do?
displays the contents of the kernel ring buffer
It may not display older info because it is overwritten by newer info and stored in RAM
What command generated the following output?
21:04:15 up 14 days, 7:43, 3 users, load average : 0.89, 1.00 0.99
uptime
(or w)
What command generated the following output?
Filesystem Size Used Avail Use% Mounted on
/dev/mapper 25G 20G 3.6G 85% /
/vg_ssd-root
df -h
What command generated the following output?
1.8M /tmp
du -h
What command generated the following output?
total used free shared buff/cache available
Mem : 9113232 3546 54522 463621 99385113
free
What directory must be mounted with read and write access if it resides on its own dedicated filesystem?
/var
What is the return value of a shell script after successful execution?
0
What is the return value of a shell script after a failed execution?
any number 1 - 255
What is Dovecot
Mail server like Postfix
What is the PATH environment variable?
How do you display it?
ordered list of paths that Linux will search for executables when running a command
echo $PATH
perform a case-insensitive search with line numbers
grep -in
What command extracts the contents of a tar archive?
tar -x
What command creates an archive file work.tar from the contents of the directory ./work/?
tar cf work.tar ./work/
Where does Linux stores most of its log files in the directory tree?
/var/log
Where are configuration files stored?
/etc