Linux Admin Interview Questions and Answers

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Linux Admin 

Interview Questions and Answers

1.   Using the man pages, find the correct ioctl to send console output to an arbitrary
pty

2.   What is an MX record?

3.   What are the fields of the password file?

4.   What does a plus at the beginning of a line in the password file signify?

5.   Write a program in any language you choose, to reverse a file

6.   What is the prom command on a Sun that shows the SCSI devices?

7.   How do you take a single line of input from the user in a shell script?

8.   Write a script to convert all DOS style backslashes to UNIX style slashes in a list of
files

9.   Write a regular expression (or sed script) to replace all occurrences of the letter ‘f’,
followed by any number of characters, followed by the letter ‘a’, followed by one or
more numeric characters, followed by the letter ‘n’, and replace what’s found with the
string “UNIX”

10.   Write a script to list all the differences between two directories

11.   What is the factory default SCSI target for /dev/sd?

12.   Where is that value controlled?

13.   What happens to a child process that dies and has no parent process to wait for it
and what’s bad about this?

14.   What’s wrong with sendmail? What would you fix?

15.   What command do you run to check file system consistency?

16.   What’s wrong with running shutdown on a network?

17.   What can be wrong with setuid scripts?

18.   What value does spawn return?

19.   Write a script to send mail from three other machines on the network to root at
the machine you’re on Use a ‘here doc’, but include in the mail message the name of
the machine the mail is sent from and the disk utilization statistics on each machine?
20.   Why can’t root just cd to someone’s home directory and run a program called aout
sitting there by typing “aout”, and why is this good?

21.   What is the difference between UDP and TCP?

22.   What is DNS?

23.   What does nslookup do?

24.   How do you create a swapfile?

25.   How do you find which ypmaster you are bound to?

26.   How do you fix a problem where a printer will cutoff anything over MB?

27.   What is the largest file system size in solaris? SunOS?

28.   What are the different RAID levels?

29.   How would you check the route table on a workstation/server?

Advantages/disadvantages of script vs compiled program

1.   Name a replacement for PHP/Perl/MySQL/Linux/Apache and show main differences

2.   Why have you choosen such a combination of products?

3.   Differences between two last MySQL versions Which one would you choose and
when/why?

4.   Which tool would you use to update Debian / Slackware / RedHat / Mandrake /
SuSE ?

5.   You’re asked to write an Apache module What would you do?

6.   Which tool do you prefer for Apache log reports?

7.   Your portfolio (even a PHP guest book may work well)

8.   Main differences between Apache x and x Why is x not so popular? Which one
would you choose and when/why?

9.   Which Linux distros do you have experience with?

10.   Which distro you prefer? Why?

11.   What does ‘route’ command do?


12.   Differences between ipchains and iptables

13.   What’s eth, ppp, wlan, ttyS, etc

14.   What are different directories in / for?

15.   Partitioning scheme for new webserver Why?

1) What is a superblock ?
2) What is a parity bit?
3) What is an inod?
4) Explain top command ?
5) How to disable the root login in SSH ?
6) use of sysctl command ?
7) LVM how to ?
Different RAID levels ?

You might also like