Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started