Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(1) (4 pts) 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;

image text in transcribed

(1) (4 pts) 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) (10 pts) Give the complete command line to open a text 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 to figure out the correct answer; (3) (1 pt) How do you switch to command mode in vi? (4) (2 pts) List two ways you switch to insert mode in vi. (5) (2 pts) Which letter do you press for copy operation in vi? Which letter do you press for paste operation in vi? (6) (3 pts) Give the complete command in vi to search for word 'jpg' (from current location towards the end of the file). How do you repeat the search towards the end of the file? 1

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

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

LO2 Explain the nature of the psychological contract.

Answered: 1 week ago