LPI 101-500 Practice Test - Questions Answers, Page 11
List of questions
Related questions
Question 101

CORRECT TEXT
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)
Question 102

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
Question 103

When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards?
Question 104

When given the following command line. echo "foo bar" | tee bar | cat Which of the following output is created?
Question 105

Which of the following commands can be used to determine how long the system has been running?
(Choose TWO correct answers.)
Question 106

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
Question 107

Which of the following explanations are valid reasons to run a command in the background of your shell?
Explanation:
A. The command does not need to execute immediately.
B. The command has to run immediately but the user needs to log out.
C. The system is being shut down and the command needs to restart execution immediately after the reboot.
D. The command can run at a lower priority than normal commands run on the command line.
Answer: B
Explanation:
Question 108

What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words
Question 109

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?
Question 110

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?
Question