GNU and Unix commands — page 5
Objective 103 of LPIC-1 Exam 101-500, worth 43.33% of the exam. This is page 5 of 7 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
- 130
- Signed for by a person
- 0
- Machine-checked only
- 130
Partly checked. None of the 130 questions here has been read against the cited source by a person. 130 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.
How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.
What this objective covers
The 130 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) and 34 manual pages (bash(1), bzip2(1), cp(1), cpio(1), crontab(1), dd(1), env(1), find(1), getpriority(2), glob(7), grep(1), gzip(1), ls(1), man(1), mv(1), nano(1), nice(1), nohup(1), ps(1), regex(7), renice(1), rmdir(1), screen(1), sed(1), signal(7), tar(1), tee(1), top(1), touch(1), uname(1), vi(1p), vim(1), wc(1), xargs(1)).
They break down as 88 single-answer questions, 18 choose-several questions and 24 type-the-answer questions.
Drill this objective
The trainer can run a short 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
Questions on this objective (page 5 of 7)
- 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
- You open a file with vi. You immediately type `dd`. What have you done, and what mode were you in? machine-checked
- In vi you have made changes you do not want. Which command leaves the editor and discards them? machine-checked
- You are repairing a minimal rescue system with almost no packages installed. Why is vi the editor an LPIC-1 candidate is expected to know? machine-checked
- Which TWO commands send a signal to processes selected by their NAME rather than by a numeric PID? machine-checked
- Which THREE approaches keep a long-running command alive after you disconnect an SSH session? machine-checked
- Using GNU grep, which THREE characters have their special meaning only when preceded by a backslash in a BASIC regular expression, but are special as typed in an EXTENDED one? machine-checked
- Starting from command mode in vi, which THREE keys switch the editor into insert mode? machine-checked
- A process with PID 4021 is ignoring SIGTERM. Type the complete command that forcibly terminates it with the signal that cannot be caught or ignored. machine-checked
- Type the command, including the option, that reports total, used and free memory with the units scaled to human-readable sizes such as Gi and Mi. machine-checked
- As root, type the command that changes the nice value of the already running process with PID 2500 to 10. machine-checked
- Type the ps command, using the traditional BSD-style options and no leading dash, that lists every process on the system in the user-oriented format including processes without a controlling terminal. machine-checked
- You are in vi command mode with unsaved changes. Type the command that writes the file and then exits the editor. machine-checked
- In a bash shell, `jobs` reports job 1 running in the background and job 2 stopped. You want job 2 to take over the terminal so you can interact with it. Which command does that? machine-checked
- A server is short of memory and you want a process list whose heaviest memory consumers appear first. Which command produces that ordering directly from ps? machine-checked
- From the directory /srv/import you run `nohup ./load.sh &` and redirect nothing. The script writes progress messages to standard output. Where do those messages go? machine-checked
- You are watching a live top display and want the task list re-sorted so that the processes using the most memory are at the top. Which single key does that? machine-checked
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