- 论坛徽章:
- 0
|
Basic questions to ask SysAdmin candidates to shake out junior candidates:\r\n\r\n1. how would you add a user to your system? \r\nIf the candidate answers SAM, Sysadmin, Smit, /usr/ucb/vipw,\r\nor any other type of sys admin tool, then ask them \"What files get modified?\"\r\n\r\nAnswer:\r\njust /etc/passwd on most systems.\r\n/etc/passwd and /etc/shadow in Solaris\r\n\r\n2. What files are used to configure DNS on a Unix box \r\n/etc/resolv.conf and /etc/nsswitch.conf\r\n\r\n3. What happens when the system boots? \r\nAnswer should include something about the /etc/rc?.d scripts \r\n(/etc/rc1.d, /etc/rc2.d, /etc/rc3.d). Some systems still use /etc/rc.local\r\n(SunOS and HP-UX) or /sbin/rc[0-3].d scripts (Digital Unix) \r\n\r\n4. Where would you look for startup and error messages on a Unix server?\r\n/var/adm/messages (/usr/adm/syslog on HP-UX boxes). They can also run\r\nthe command dmesg.\r\n\r\n5. What are some shells you\'d find on a Unix box?\r\nAnswer should include at least: Bourne shell (sh), C-Shell (csh) and\r\nKorn shell (ksh). Might also mention Tom\'s C shell (tcsh), Bourne-again\r\nshell (bash), or z-shell (zsh).\r\n\r\n6. What are some other common unix scripting \"languages?\"\r\nLooking for sed, awk, perl, tcl/tk, etc\r\n\r\n7. What are the standard editors on a Unix system?\r\ned and vi. Others are emacs and pico (these are becoming more and\r\nmore part of a standard unix distribution these days)\r\n\r\n8. What common unix utility do you use to compile complex C programs?\r\nAnswer: make. \r\n\r\n9. How would you find the most recently changed file in a directory?\r\nls -latr or ls -ltr, then see which files are at the end of the list\r\nor\r\nls -lat or ls -lt and see which are at the top of the list\r\n\r\n(the t option of ls lists files by timestamp).\r\n\r\n10. How do you mount a file system to make its files available to users\r\non a system? \r\nedit /etc/vfstab, add a line containing the physical disk the filesystem\r\nis located on and the directory name you want to mount the filesystem to.\r\n\r\nFollowup: Explain the difference between vfstab and mnttab\r\n/etc/vfstab is edited by the Sysadmin\r\n/etc/mnttab is system-generated\r\n\r\n11. How would you find all the processes being run by user \"joe?\"\r\n\r\nSystem 5: ps -fe | grep joe\r\nBerkeley: ps -auxww | grep joe |
|