Which of the following GNU commands would be the most likely command you'd use to find the system load average?
A. top
B. nice
C. loadavg
D. cpustat
E. ps
What command will remove duplicate lines from a sorted file?
A. filter
B. trim
C. uniq
D. wc
You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?
A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed. bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed.
You are compiling some software from source. After running ./configure with the appropriate arguments and no errors, what is the next command to run?
A. make
How do you get a list of files that have been installed from a dpkg package?
A. dpkg -l pkgname
B. dpkg -C pkgname
C. dpkg -s pkgname
D. dpkg -S pkgname
E. dpkg -L pkgname
When installing XWindows the monitor wasn't recognised but now a data sheet with its specification is available. Which xorg.conf section must be edited to specify the correct values for several variables?
A. Screen
B. Monitor
C. Border
D. Modeline
E. Device
The command echo $! will produce what output?
A. the process id of last background command
B. the exit status of the last command
C. the exit status of the last background command
D. the process id of the current shell
E. the name of the command being executed
You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?
A. telinit 1
B. shutdown -r now
C. killall -9 inetd
D. /bin/netstop --maint
E. /etc/rc.d/init.d/network stop
The system is having trouble and the engineer wants to bypass the usual /sbin/init startup and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader?
A. Start in runlevel 1
B. Pass init=/bin/sh on the kernel parameter line
C. Pass /bin/sh on the kernel parameter line
D. Pass start=/bin/sh on the kernel parameter line
Which of the following commands will print the amount of disk space used by files specified on the command line?
A. dc
B. dd
C. df
D. du