Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. You just opened a file in vi and you want to search for a particular string called printf. What can you type in vi

1. You just opened a file in vi and you want to search for a particular string called "printf". What can you type in vi to search for this string?

a. /printf

b. edit printf

c. dd printf

d. ss "printf"

e. search/"printf"

2. You have a file called somefile and you just opened it using vi. After typing G and :1 where is your cursor sitting (what line #)?

a. This will produce and error in vi

b. Line #1

c. The last line in file [if there are 100 lines it would be on line #100]

d. Exactly in the middle of the file.

e. Exactly in the center of the first line.

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions