Question: Lab #2 vi Before you start Leverage the man or help utilities to access the manual pages for commands and really learn how commands work

Lab #2 vi

Before you start

Leverage the man or help utilities to access the manual pages for commands and really learn how commands work

Setting Up the Lab

As you work through the lab, questions will be denoted with a Q. Fill in your answers in a text file called lab2.txt.

Make some appropriate subdirectory for this lab and go there e.g., ~yourid/cs265/lab2 Ensure your directory restricts access to other students.

$ mkdir cs265 (if you do not have it already, cd if you do)

$ chmod go-rwx cs265 (if you have not done this already)

$ cd cs265

$ mkdir lab2

$ cd lab2

$ chmod go-rwx lab2

vi tutorial

For a basic vi tutorial, just type:

vimtutor

This will open the vi tutorial in the vi editor and will teach you the basics of vi. When you run the program, it will open a file. The first time you run vimtutor save the file using

:w vi.txt (from the command mode)

You can now make your own edits to the file. Read the tutorial, make any recommended edits then save the file. If you need to stop and restart, you can now edit this file by simply typing this in the Linux command line

vi vi.txt

You will submit the file vi.txt as part of your lab work.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!