0% found this document useful (0 votes)
30 views7 pages

UNIX Lab Report: VI Editor Basics

Os

Uploaded by

ambarbansal2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views7 pages

UNIX Lab Report: VI Editor Basics

Os

Uploaded by

ambarbansal2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Operating System with UNIX Lab

Lab Report

Course Code: BCS323

Submitted By: Submitted To:


Name:
Dr. Nagresh Kumar
Program Name: B.Tech.(CSE)

Enrollment Number:
Semester: III

INDEX

S.No. TOPIC Date Remarks


1

10

11

12
Lab-1

(A) Write and execute basic commands for VI-Editor used in Unix/Linux.

Command Action

vi <file_name> Creating a file in VI editor

i Insertion in file

esc To come out of insert mode

:wq Save and exit from file

:q! Exit without saving file

:q Exits vi
(1) CREATING A FILE IN VI EDITOR

(2) WRITING IN A FILE IN VI EDITOR

(3) ESC FROM INSERT MODE


(4) SAVING AND EXIT FILE
(B) BASIC HELLO WORLD PROGRAM IN C IN VI EDITOR
(1) Making a file with .c extension

(2) Insert mode – Write helloworld program in C language

(3) Save file


(4) Open file and run it.

You might also like