Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

  1. 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;
  2. 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;
  3. How do you switch to command mode in vi?
  4. List two ways you switch to insert mode in vi?
  5. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions