link: http://isitup.wordpress.com/tag/linux-administrator-interview-questions/
Bash:
- How do you find out if a shell command succeeded or not?
- Write a command line to delete files in /tmp across say 400 machines.
- What do $?, $!, $@ stand for?
- Write a shell script that replaces the shell command which.
- What is your favorite shell and why?
- What does . mean in regular expressions?
- Write a regular expression that does that matches this
- What is the output of ls -l ?
- What does the stat command do?
- What is difference between ” and ‘ ?
- How will you change root password on 10K servers and you have no ssh keys? What will you do if it is 100K servers? [ANS: http://amitmund.blogspot.in/2013/10/ssh-tips.html ]
Databases:
- What are the differences between innodb vs myisam?
- How can you tell if replication is functional?
- What does sharding mean to you?
- What does explain mean to you?
- What are the general parameters you tune for MySQL?
- What can you do to shutdown a Oracle database that you cannot sqlplus into?
DNS:
- What is the difference between A record and CNAME record?
- Why PowerDNS over BIND?
Editors:
- Emacs vs VI what’s your choice and why?
- Wait, what you use nano?
Configuration Management:
- What is puppet? Why do you use it?
- What do you need to do rebuild a puppet master on the fly?
- What is the keyword for forcing one-operation after another operation in a puppet manifest?
Mail:
- Describe a SMTP transaction with commands.
Networking:
- What is the difference between TCP vs UDP?
- How do ping and traceroute work? Do get into details about TTL.
- Can you tell me the command line for tcpdump to capture traffic on port 22 on interface eth0?
- Can you describe how routing works?
- Describe a HTTP transaction in all detail you can.
- What is a VLAN? Why do you need VLANS?
- What are the port numbers for pop,imap,http,https,dns?
- What is a spanning tree?
- What are MSS and MTU?
- Explain when you would use UDP and when you would use TCP.
- What is supernetting?
- How many bits in an IPV4 address?
- What is the difference between Class address and CIDR?
- Describe a DNS transaction in great detail.
NFS:
- What is the possible reason that a nfs server would appear to be slow when serving large files but quite fast when serving small files?
- What is your experience with nfs?
Operations:
- Do hostnames need a sequence number in their naming convention? Why/Why not?
- How do you deal with multiple issues that come up?
- How do you deal with developers?
- How do you handle aggregating logs files?
- Describe whats your strategy for disaster recovery?
- A client says he/she is expected to receive 5million hits, what hardware do you recommend?
- What Linux distribution would recommend for a business?
- Do you have any issues with running Windows in production?
- Describe your ideal job?
- Describe what you would like to do?
- What are your thoughts on how a release process should be?
- What are your thoughts on monitoring?
- Design a high level detail for a LAMP stack and DR solution.
Operating Systems/Distributions
- What’s your favorite Linux distro and why?
- How do you go about recommending what distro to use for a business?
- What is an inode?
- What is the difference between a soft link and a hard link?
- Can you create a directory/filename by the name -f ? If so how?
- What is uptime?
- What is load average? What do those numbers mean?
- What does it mean when someone says there is high load?
- When can you have such a high load of 400 and yet have low CPU usage?
- What is a semaphore?
- What is is a signal?
- Can you name few signals?
- What does set group id for a directory mean?
- What are the different kinds of files?
Security :
- How do you secure a linux system?
- What is a sql injection attack?
- What is the command to manipulate kernel level firewall?
Misc:
- Where do you get your news?
- What are you favorite set of tools you like to have always?
- Tell us a joke.