LFCS practice questions, page 10 of 11, with answer review and explanations.
Question 46
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
9
19
49
99
Question 47
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?
i (lowercase)
P (uppercase)
p (lowercase)
U (uppercase)
u (lowercase)
Question 48
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
rmdir '~/\dir'
rmdir "~/\dir"
rmdir ~/'dir'
rmdir ~/\dir
rmdir ~/\\dir
Question 49
In compliance with the FHS, in which of the directories are man pages found?
/usr/share/man
/opt/man
/usr/doc/
/var/pkg/man
/var/man
Question 50
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?