Which of the following commands will reduce all consecutive spaces down to a single space?
Answer : E
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
Answer : A,B
Which of the following commands replaces each occurrence of 'bob' in the file letter with
'Bob' and writes the result to the file newletter?
Answer : D
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
Answer : C
Which variable defines the directories in which a Bash shell searches for executable commands?
Answer : C
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
Answer : C
What command will generate a list of user names from /etc/passwd along with their login shell?
Answer : D
Which of the following files, located in the user home directory, is used to store the Bash history?
Answer : A
What is the default nice level when a process is started using the nice command?
Answer : B
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
Answer : C
Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
Answer : C
Which of the following commands moves and resumes in the background the last stopped shell job?
Answer : B
Which of the following command sets the Bash variable named TEST with the content
FOO?
Answer : D
When running the command -
sed -e "s/a/b/" /tmp/file >/tmp/file
While/tmp/file contains data, why is /tmp/file empty afterwards?
Answer : C