1. Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
A) A. ! B) B. + C) C. & D) D. % E) E. #
2. Which of the following commands will print the last 10 lines of a text file to the standard output?
A) A. cat -n 10 filename B) B. dump -n 10 filename C) C. head -n 10 filename D) D. tail -n 10 filename
3. Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
A) A. fmt -f 1,4 /etc/passwd B) B. split -c 1,4 /etc/passwd C) C. cut -d : -f 1,4 /etc/passwd D) D. paste -f 1,4 /etc/passwd
4. Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
A) A. SIGTERM B) B. SIGINT C) C. SIGSTOP D) D. SIGKILL
5. What happens after issuing the command vi without any additional parameters?
A) A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited. B) B. vi starts and requires the user to explicitly either create a new or load an existing file. C) C. vi exits with an error message as it cannot be invoked without a file name to operate on. D) D. vi starts in command mode and opens a new empty file. E) E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Leave a comment