Editing files from the terminal
Lesson 8 of 8 in objective 103. GNU and Unix commands, part of LPIC-1 Exam 101-500.
- Objective
- 103. GNU and Unix commands
- Share of the exam
- 43.33% (the whole objective)
- Questions in this lesson
- 5
- Signed for by a person
- 0
Partly checked. None of the 5 questions here has been read against the cited source by a person. 5 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.
Questions in this lesson
- 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
- Starting from command mode in vi, which THREE keys switch the editor into insert mode? 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
Drill this lesson
A lesson is one sitting: the trainer draws a short run from these questions alone and spaces the ones you get wrong.
Practise Editing files from the terminal
The rest of objective 103
- Working on the command line
- Filtering text streams
- Basic file management
- Streams, pipes and redirection
- Creating, monitoring and killing processes
- Process execution priorities
- Searching text with regular expressions
- Editing files from the terminal — you are here