You have a text file with tab-separated values, but your application needs them space- separated. What command would you use from the Bash shell to achieve this? Please fill in the command only, without any options.
A. expand
You want to save vi changes to the file myfile with :w!, but vi complains it can not write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:
A. :!ls -l myfile
B. :\ls -l myfile
C. esc :ls -l myfile
D. :?ls -l myfile
You are running Linux 2.0.36 and you need to add a USB mouse to your system. Which of the following statements is true?
A. You need to rebuild the kernel.
B. You need to upgrade the kernel.
C. You need to load the USB modules for your existing modular kernel.
D. USB support is no available in Linux.
Which RPM command will output the name of the package which installed the file /etc/exports?
A. rpm -F /etc/exports
B. rpm -qf /etc/exports
C. rpm -Kl /etc/exports
D. rpm -qp /etc/exports
E. rpm -ql /etc/exports
Which of the following commands will list the quota for the user foobar?
A. repquota foobar
B. quota foobar
C. lsquota foobar
D. printquota foobar
Which of the following programs is typically used to query installed debian packages? (Please select TWO that apply)
A. dpkg
B. apt-cache
C. apt-conf
D. dselect
What RPM command would show you detailed information for a package called openssh- 3.6.i386.rpm?
A. rpm --showinformation openssh-3.6.i386.rpm
B. rpm --showdetails --package openssh-3.6.i386.rpm
C. rpm --query --info --package openssh-3.6.i386.rpm
D. rpm --verify openssh-3.6.i386.rpm
In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?
A. 17dd
What can the tee command be used for?
A. Print the contents of a file in reverse order
B. Use the output of one command as arguments to another
C. Add line numbers to the output of a command
D. Pipe the output of one command into the input of another
E. Send a command's output to stdout and a to file at the same time
What effect does the sticky bit have when set on a directory?
A. There is no effect because the sticky bit has been deprecated in Linux.
B. It provides a hint to the kernel that files in this directory should be cached in memory, if possible.
C. It restricts deletion of files in this directory to only the root user and the file owner regardless of write permissions for other users.
D. It instructs the kernel to keep the underlying data for the files in the directory intact to allow for undeletion of important files.