An administrator is formatting a single hard disk for a Linux install. What is the maximum number of primary partitions that can be created?
Which command will disable paging and swapping on a device? (Provide only the command with no additional options or parameters).
An administrator has downloaded an image file of a boot floppy disk to a hard drive. What is the BEST utility to create a boot floppy from the disk image? (Specify a single command without options.)
In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Enter the correct vi command without spaces. (Please enter only a single answer.)
An administrator wishes to kill a process with a PID of 123. Which of the following commands will allow the process to "clean up" before exiting?
A. kill -1 123
B. kill -9 123
C. kill -15 123
D. kill -17 123
Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. Which of the following commands, entered into a bash initialization file, will have bash recognize vi keystrokes after login?
A. history -p vi
B. alias emacs=vi
C. HISTCMD=vi
D. set -o vi
E. unset emacs
Which of the following commands will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
A. cut -d: -f1,3 /etc/passwd
B. chop -c 1,3 /etc/passwd
C. tac 1-3 /etc/passwd
D. fmt -u /etc/passwd
While editing a file in vi, an administrator realizes that the wrong file is being changed. Which of the following vi command sequences will allow the administrator to quit without saving any changes?
A. :Q!
B. :q!
C. :w!
D. :wq!
In order to append the output of ls to a file called bazz, which of the following command lines would an administrator use?
A. ls > bazz
B. ls >and bazz
C. ls and> bazz
D. ls >> bazz
Which of the following commands will print the inode usage on each mounted filesystem?
A. du -i
B. df -i
C. lsfs -i
D. printfs -i