Collection of Linux Sysadmin/DevOps interview questions
A collection of linux sysadmin/devops interview questions. Feel free to contribute via pull requests, issues or email messages.
ifconfig -a
. What can be wrong?chmod +x FILENAME
do?ls
?tee
awk
tr
cut
tac
curl
wget
watch
head
tail
less
cat
touch
sar
netstat
tcpdump
lsof
&
after a command do?& disown
after a command do?myvar=hello
export myvar=hello
ntpq -p
output?:(){ :|:& };:
do on your system?EAGAIN: Resource temporarily unavailable
on reading a socket. How can you close this bad socket/file descriptor without killing the process?ping localhost
fail?sendmsg: operation not permitted
. What could be wrong?chmod 444 /bin/chmod
- what do you do to fix this?get_prim
method in python/perl/bash/pseudo.(date ; ps -ef |tail -n +2 | awk '{print $1}' | sort | uniq | wc -l ) >> Activity.log
<TIME> : [MESSAGE] : [ERROR_NO] - Human readable text
display summary/count of specific error numbers that occurred every hour or a specific hour.Some questions are 'borrowed' from other great references like: