Which of the following commands will reduce all consecutive spaces down to a single space?
A. tr '\s' ' ' < a.txt > b.txt
B. tr -c ' ' < a.txt > b.txt
C. tr -d ' ' < a.txt > b.txt
D...
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
A. -10
B. 0
C. 10
D. 20
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
A. esc ZZ
B. ctrl :w!
C. esc zz
D. esc :wq!
E. ctrl XX
Which of the following shell redirections will write standard output and standard error output to a file named filename?
A. 2>&1 >filename
B. >filename 2>&1
C. 1>&2>file...
Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?
A. /usr/bin/prog is executed with a nice level of -5.
B. /usr/bin/prog is executed with a nice leve...
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.)
A. source /usr/loc...
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
A. sed '/bob/Bob' letter > newletter
B. sed s/bob/Bob/ ...
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