GNU and Unix commands — page 7
Objective 103 of LPIC-1 Exam 101-500, worth 43.33% of the exam. This is page 7 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 7 of 7)
- You are reordering entries in a configuration file with vi. In command mode you put the cursor on the line you want to move and press `dd`, then move the cursor down two lines. Which single keystroke re-inserts the removed line below the cursor? machine-checked
- You have opened a long log file in vi and jumped to the end of it. You now need to find the nearest earlier occurrence of the word `error`, that is, above the cursor. Which command starts that search? machine-checked
- You are editing a file in vi over a serial console whose arrow keys produce escape sequences vi does not interpret. In command mode, which key moves the cursor down one line? machine-checked
- Running `crontab -e` on a server drops you into vi, but you would rather it opened nano for your account from now on. Which line, added to your shell startup file, is the intended way to arrange that? machine-checked
- You opened a file with `vi -R /etc/motd`, so the editor's `readonly` option is set. You then decide the file does need changing, make your edits, and `:w` is refused with a message that the readonly option is set. Your account does have permission to write the file. Which command writes it anyway? machine-checked
- In vi you are editing the kernel command line inside /etc/default/grub. The cursor sits on the first character of an option in the middle of the line, and you want to remove that character and everything after it on the same line, keeping the text before the cursor and the line itself. Which command-mode command does it in one step? machine-checked
- A colleague edits a file with nano and asks what the entries at the bottom of the screen, such as `^O Write Out` and `^X Exit`, are telling them to press. machine-checked
- Which THREE of the following vi command-mode commands remove text from the buffer? (Choose three.) machine-checked
- You are in vi's command mode at the top of /etc/services and want to jump forward to the next occurrence of the string `daemon`. Type exactly what you enter to begin that search, including the leading punctuation character and the search string, but without the Enter key. machine-checked
- In vi's command mode you want to copy the current line into the unnamed buffer without removing it from the file. Type the two-keystroke command that does it. 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