Which command produces the following output ?mamun pts/8 Oct 26 11:27 (drumlin) mamun pts/3 Oct 22 22:49 (onc-isdn-181.wustl.edu) mamun pts/11 Oct 30 08:59 (strike) mamun pts/12 Oct 31 09:37 (drumlin) mamun pts/9 Nov 17 09:28 (strike) dcn pts/6 Nov 17 14:12 (wudere) root pts/7 Nov 16 16:07 (flatirons)a. last b. last mamun c. who mamun d. who
Answer: DQ. Command to install packages from /software/pkg1 directorya. pkgadd -d /software/pkg1 b. pkgadd –a /software/pkg1 c. softadd –d /software/pkg1 d. clustadd –d /software/pkg1
Order of execution for the following files (bourne shell)a. /etc/profile is executed only if $HOME/.profile does not exist b. $HOME/.profile is executed only if /etc/profile does not exist c. $HOME/.profile, then /etc/profile d. /etc/profile , then $HOME/.profile
Answer: D
How do you (root) change the cron file of a user ?a. run crontab -e from his/her login b. crontab –e –i user c. cron –u user d. cronedit user
Answer: A
Answer: B
What does the v option do in the ufsdump command ?a. verifies backup b. uses compression c. updates the dump table d. runs in the background
Answer: A
Default spool directory for installing patches is:a. /var/spool/pkg b. /var/tmp/patches c. /tmp/pkgspool d. /tmp/spool/patch
Answer: A
What is the last field in the /etc/passwd file ?a. password b. comment c. home directory d. login shell
Answer: D
Files that control access to the cron daemon are:a. /etc/cron.d/cron.allow b. /etc/cron.allow c. /etc/cron.deny d. /etc/cron.d/cron.deny
Answer: A,D
Which cron entry will execute the ufsdump command at 3P.M. every sunday ?a. 0 3 * * 0 ufsdump b. 0 15 * * 1 ufsdump c. 0 15 * * 0 ufsdump d. ufsdump 0 15 * * 0
Answer: C
Which cron entry will run the “du –k /usr” the command at 11th minute of each hour every monday ?a. 11 * * * 1 du –k /usr b. * 11 * * 1 du –k /usr c. 11 * * * 0 du –k /usr d. 11 * * 1 * du –k /usr
Answer: A