GNU and Unix commands — page 2
Objective 103 of LPIC-1 Exam 101-500, worth 43.33% of the exam. This is page 2 of 3 of its question list; page one carries the full objective summary.
- Share of the exam
- 43.33%
- Questions in a real sitting
- roughly 26 of 60
- Questions in this bank
- 52
- Signed for by a person
- 0
- Machine-checked only
- 52
Partly checked. None of the 52 questions here has been read against the cited source by a person. 52 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.
Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.
What this objective covers
The 52 questions written for this objective cite 8 LPI exam objectives (103.1, 103.2, 103.3, 103.4, 103.5, 103.6, 103.7, 103.8).
They break down as 33 single-answer questions, 8 choose-several questions and 11 type-the-answer questions.
Questions on this objective (page 2 of 3)
- A directory contains the single file log2024.txt. Select the THREE shell glob patterns that match that file name. machine-checked
- Neither project nor project/src exists yet. Type the complete command that creates the directory project/src/main in a single invocation, creating the missing parent directories as needed. machine-checked
- Select the TWO true statements about output redirection in bash. machine-checked
- The pipeline `find . -name '*.tmp' | xargs rm` fails on file names that contain spaces, because xargs treats each word as a separate argument. Which form handles those names correctly? machine-checked
- Inside a script you want to feed several lines of text that are written directly in the script, ending at a marker word, to a command's standard input. Which redirection operator introduces that construct? machine-checked
- Type the complete command line that runs `dmesg` so that its output appears on the terminal and is written to the file boot.log at the same time. Use a pipe and the standard tool for this. machine-checked
- You run `kill 3120` with no other options. Which signal does the process receive? machine-checked
- You know only the program name and want to terminate every running process called `httpd`. Which command does that in one step? machine-checked
- You edited a daemon's configuration file and want the running daemon to reread it without restarting. Which signal is conventionally used? machine-checked
- You press Ctrl+Z while a long-running command occupies the foreground of your bash shell. What happens? machine-checked
- A backup script must keep running after you close your SSH session. You have not started it yet. Which invocation is designed for exactly this? machine-checked
- Which command re-runs `df -h` every 5 seconds and redraws the result in place? machine-checked
- In the standard `uptime` output, what are the three numbers reported at the end of the line? machine-checked
- Which statement about nice values on Linux is correct? machine-checked
- User anna started a job that currently has nice value 10. As anna, she runs `renice 5 -p <pid>` to set its nice value to 5. What happens? machine-checked
- From a shell running at the default nice value of 0, which command starts `./render.sh` with nice value 15 so it competes weakly for CPU time? machine-checked
- You must match one or more consecutive digits using grep with BASIC regular expressions (no -E). Which pattern is correct? machine-checked
- A colleague needs to search a file for the literal string `1.2.3.4` and is worried the dots will match any character. Which command treats the pattern as a fixed string with no regular expression meaning at all? machine-checked
- hosts.txt mixes host names with raw IP addresses. Which command uses a sed address to print ONLY the lines that begin with a digit, each line exactly once? machine-checked
- In `grep '\(ab\)\1' file`, what is the role of `\1`? machine-checked
Drill this objective
The trainer can run a practice set drawn from this objective alone, which is what the weight column above is for: revise the heavy objectives first.
Practise GNU and Unix commands
The other objectives in LPIC-1 Exam 101-500
- 101. System architecture — 13.33% of the exam
- 102. Linux installation and package management — 18.33% of the exam
- 104. Devices, Linux filesystems, filesystem hierarchy standard — 25% of the exam