Q1. - (Topic 3) In Bash, inserting 1>&2 after a command redirects A. standard error to standard input. B. standard input to standard error. C. standard output to standard error. D. standard error to standard output. E. standard output to standard input. View AnswerAnswer: C Q2. CORRECT TEXT - (Topic 2) Which Debian package management tool asks the configuration questions for a specific already installed package just as if…
Q1. - (Topic 3) Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached? A.
Q1. - (Topic 3) In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories? A. -dirmax B. -maxdepth C. -maxlevels D. -n E. -s View AnswerAnswer: B Q2. - (Topic 4) Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as…
Q1. - (Topic 3) Which of the following commands moves and resumes in the background the last stopped shell job? A. run B. bg C. fg D. back View AnswerAnswer: B Q2. - (Topic 1) Which of the following kernel parameters instructs the kernel to suppress most boot messages? A. silent B. verbose=0 C. nomesg D. quiet View AnswerAnswer: D Q3. - (Topic 3) Which of the following are valid stream redirection operators within Bash?…
Q1. - (Topic 3) Which of the following commands is used to change options and positional parameters for a running Bash? A. history B. set C. bashconf D. setsh E. envsetup View AnswerAnswer: B Q2. CORRECT TEXT - (Topic 3) Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.) View AnswerAnswer: HISTFILE Q3. - (Topic 3) Which of…
Q1. - (Topic 4) Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem? A. mod2fs B. fsck C. tune2fs D. mke2fs E. fixe2fs View AnswerAnswer: C Q2. - (Topic 4) Which of the following commands can be used to locate programs and their corresponding man pages and configuration files? A. dirname B. which C. basename D.…
Q1. - (Topic 1) During a system boot cycle, what program is executed after the BIOS completes its tasks? A. The bootloader B. The inetd program C. The init program D. The kernel View AnswerAnswer: A Q2. CORRECT TEXT - (Topic 2) Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first…
Q1. - (Topic 4) Which of the following commands makes /bin/foo executable by everyone but writable only by its owner? A. chmod u=rwx,go=rx /bin/foo B. chmod o+rwx,a+rx /bin/foo C. chmod 577 /bin/foo D. chmod 775 /bin/foo View AnswerAnswer: A Q2. - (Topic 3) Which grep command will print only the lines that do not end with a / in the file foo? A. grep '/$' foo B. grep '/#' foo C.…
Q1. - (Topic 1) Which of the following commands will write a message to the terminals of all logged in users? A. bcast B. mesg C. print D. wall E. yell View AnswerAnswer: D Q2. CORRECT TEXT - (Topic 2) Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.) View AnswerAnswer: swapoff, /sbin/swapoff Q3. - (Topic 3) In a nested directory structure, which find…
Q1. CORRECT TEXT - (Topic 4) Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.) View AnswerAnswer: quotacheck Q2. - (Topic 3) Which of the following statements is correct regarding the command foo 1> bar? A. The stdout from the command foo is appended to the file bar. B. The stdout…
Q1. CORRECT TEXT - (Topic 3) Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.) View AnswerAnswer: jobs Q2. - (Topic 3) Which of the following files, located in the user home directory, is used to store the Bash history? A. .bash_history B. .bash_histfile C. .history D. .bashrc_history E. .history_bash View AnswerAnswer: A Q3. - (Topic 2) After…
Q1. - (Topic 1) Which of the following statements is correct when talking about /proc/? A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot. B. All files within /proc/ are read-only and their contents cannot be changed. C. All changes to files in /proc/ are immediately recognized by the kernel. D. All files within /proc/ are only readable by…
Q1. - (Topic 3) When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards? A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. B. The command sed did not match anything in that file therefore the output is empty. C. When the shell establishes the redirection it overwrites the…
Q1. CORRECT TEXT - (Topic 3) Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.) View AnswerAnswer: HISTFILE Q2. - (Topic 3) 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)…
Q1. - (Topic 3) Which of the following commands will print the last 10 lines of a text file to the standard output? A. cat -n 10 filename B. dump -n 10 filename C. head -n 10 filename D. tail -n 10 filename View AnswerAnswer: D Q2. - (Topic 3) Which shell command is used to continue background execution of a suspended command? A. & B. bg C. cont D. exec E. :& View…
Q1. - (Topic 1) Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.) A. 0 B. 1 C. 3 D. 5 E. 6 View AnswerAnswer: A,E Q2. - (Topic 4) What is the purpose of the Filesystem Hierarchy Standard? A. It is a security model used to ensure files are organized according to their permissions and accessibility. B. It provides…