0% found this document useful (0 votes)
22 views

Operating System Lab Submitted By: Zahra Batool ID:19014020005 Program: CS-11

This document provides instructions for operating system tasks like checking the GCC version, opening and editing a C program file, compiling C code, and viewing the output. It lists commands to check the GCC version with "gcc –version" or "gcc –v", open a C program file for editing with "sudo gedit program.c", compile C code with "sudo gcc program.c" or "sudo gcc –o program program.c", and view the output.

Uploaded by

seerat fatima
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Operating System Lab Submitted By: Zahra Batool ID:19014020005 Program: CS-11

This document provides instructions for operating system tasks like checking the GCC version, opening and editing a C program file, compiling C code, and viewing the output. It lists commands to check the GCC version with "gcc –version" or "gcc –v", open a C program file for editing with "sudo gedit program.c", compile C code with "sudo gcc program.c" or "sudo gcc –o program program.c", and view the output.

Uploaded by

seerat fatima
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Operating System Lab

Submitted by: Zahra Batool


ID:19014020005
Program: CS-11
 To check the version type this command

$ gcc –version or gcc –v

 Opening a file using any editor for c program

$ sudo gedit program.c

 Adding a code in the file


 Compiling c code

$ sudo gcc program.c

Or

$ sudo gcc –o program program.c

 Output

You might also like