Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions