LFCS

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?

  1. 9
  2. 19
  3. 49
  4. 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?

  1. i (lowercase)
  2. P (uppercase)
  3. p (lowercase)
  4. U (uppercase)
  5. u (lowercase)

Question 48

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

  1. rmdir '~/\dir'
  2. rmdir "~/\dir"
  3. rmdir ~/'dir'
  4. rmdir ~/\dir
  5. rmdir ~/\\dir

Question 49

In compliance with the FHS, in which of the directories are man pages found?

  1. /usr/share/man
  2. /opt/man
  3. /usr/doc/
  4. /var/pkg/man
  5. /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?

  1. cat < myapp | cat > file1.log
  2. myapp 0>&1 | cat > file1.log
  3. myapp | cat > file1.log
  4. myapp | tee file1.log
  5. tee myapp file1.log