You are on page 1of 3

Preston University, Islamabad Campus

Faculty of Business Administration and Technology

OPERATING SYSTEMS

LAB REPORT # 7

Name: Abdullah Bin Khalid

Registration No: 1411-121106

BBA-IT—4TH SEMESTER

Submitted to:

Instructor’s Name: MR. BILAL MUNIR.

Lab Date: __________________________ Marks and Signature

Submission Date: _________________________


LAB-7

Step 1: First Enter Sudo

Step 2: then we will use sudo -s to get into root.

Step 3: check gcc version (gcc –version) and then install gcc tool using (apt install gcc),
and press and enter installation will continue.
Step 4: Exit Root and create file with (.c) and type a program that prints Hello World.

Step 5: with the command the program will execute (gcc -o test practice.c) and then ./test
to get output.

END

You might also like