What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
A. /lib/init.so
B. /sbin/init
C. /etc/rc.d/rcinit
D. /proc/sys/kernel/init
E. /boot/init
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
A. --clean
B. --delete
C. --purge
D. remove
What command will generate a list of user names from /etc/passwd along with their login shell?
A. column -s : 1,7 /etc/passwd
B. chop -c 1,7 /etc/passwd
C. colrm 1,7 /etc/passwd
D. cut -d: -f1,7 /etc/passwd
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
A. rmdir '~/\dir'
B. rmdir "~/\dir"
C. rmdir ~/'dir'
D. rmdir ~/\dir
E. rmdir ~/\\dir
What is the difference between the i and a commands of the vi editor?
A. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Which of the following shell redirections will write standard output and standard error output to a file named filename?
A. 2>and1 >filename
B. >filename 2>and1
C. 1>and2>filename
D. >>filename
E. 1and2>filename
When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?
A. –rep-space
B. –print0
C. –nospace
D. –ignore-space
Which command will uninstall a package but leave its configuration files in case the package is re-installed?
A. dpkg –s pkgname
B. dpkg –L pkgname
C. dpkg –P pkgname
D. dpkg –r pkgname
How is a symbolic link called bar.conf pointing to foo.conf created?
A. ln –s foo.conf bar.conf
B. ln foo.conf bar.conf
C. ln –s bar.conf foo.conf
D. ln bar.conf foo.conf
Which permissions and ownership should the file /etc/passwd have?
A. -rw-------1 rootroot531 Jun 5 22:45 /etc/passwd
B. -rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd
C. -rw-r--r--1 11531 Jun 5 22:45 /etc/passwd
D. -rw-------1 11531 Jun 5 22:45 /etc/passwd