Question: Help! Using my linux terminal and a vi text editor, and type/print answers for the following questions. If vi program crashed last time and left
Help! Using my linux terminal and a vi text editor, and type/print answers for the following questions.
- If vi program crashed last time and left a swap file .sample.txt.swp, give the complete command line to recover from this swap file;
- Give the command line option to open some file and position the cursor at the first occurrence of phone numbers in the format of xxx-xxx-xxxx (x is a digit character). Type some text with a random phone number in a text file and try the option by yourself to figure out the correct answer;
- How do you switch to command mode in vi?
- List two ways you switch to insert mode in vi?
- Give the complete command you type to search for word jpg in vi (from current location towards the end of the file). How do you repeat the search towards the end of the file?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
