Linux Admin Interview Questions
Posted by Subash | 9:23 AM
[1] Comments
- How do you take a single line of input from the user in a shell script?
- Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files.
- 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”.
- Write a script to list all the differences between two directories.
- Write a program in any language you choose, to reverse a file.
- What are the fields of the password file?
- What does a plus at the beginning of a line in the password file signify?
- Using the man pages, find the correct ioctl to send console output to an arbitrary pty.
- What is an MX record?
- What is the prom command on a Sun that shows the SCSI devices?
- What is the factory default SCSI target for /dev/sd0?
- Where is that value controlled?
- What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
- What’s wrong with sendmail? What would you fix?
- What command do you run to check file system consistency?
- What’s wrong with running shutdown on a network?
- What can be wrong with setuid scripts?
- What value does spawn return?
- 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?
- Why can’t root just cd to someone’s home directory and run a program called a.out sitting there by typing “a.out”, and why is this good?
- What is the difference between UDP and TCP?
- What is DNS?
- What does nslookup do?
- How do you create a swapfile?
- How would you check the route table on a workstation/server?
- How do you find which ypmaster you are bound to?
- How do you fix a problem where a printer will cutoff anything over 1MB?
- What is the largest file system size in solaris? SunOS?
- What are the different RAID levels?
4:57 AM
Hi Subash;
Do you also have a list of answers available