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
What command would you use to create a symbolic link in Linux?
To create a soft link from the shell, you should use
ln -s <original_file> <link_created>
The soft link is essentially a pointer to the original file, and when the original file is deleted, the soft link does not point to anything, so “no such file or directory” is reported.</link_created></original_file>
What does the command ‘last’ show?
recent user login times, tty line used, current status
How do you view a running processes’ PID?
ps
Default zip compression level?
6
What is a sticky bit?
flag that ensures only the the owner can rename or delete a file.
——–t
Identify each of these:
–s–s–t
SUID
SGID
Sticky Bit
4
u+s
SUID
2
g+s
SGID