Nishant Kumar, PhD
Subject I Teach
Programming in C
Download the chrome extension for SSH (
Login to the lab by typing “
then paste this “
To execute the program in the lab it is a must to remember few commands.
File naming convention:
Like Registration No:
Create a file with the name and programno
To create a file an editor is a must to write programs. Here you will be having
editor to use.
VI editor works in three modes, out of which you only need two to learn.
Insert Mode (enter by pressing ‘
Command Mode (enter by pressing ‘
Saving a file needs a command to execute. Like to save a file, first press ‘
‘ then type ‘
‘ (this will be visible in left down corner)
(Write your program
Edit a file: To edit a file simply type the same command
, if the is already present it will open the file otherwise it will create a new file.
Execute a file
To execute a file
First Compile the file:
gcc 7001_aakash_01.c -o 7001_aakash_01
if there is any error it will show it, otherwise run the following command.
Run the output file:
See the output of the file
For More Reference: See below screenshots-
Insert Mode and Writing a Program
Save and Quit after pressing ESC
gcc compiler file compile process and execution