Professional Documents
Culture Documents
Computer Science & Engineering: Department of
Computer Science & Engineering: Department of
Computer Science & Engineering: Department of
Experiment - 1.2
Student Name:Baddam Deepthi priya UID:21BCS10172
Branch:BE-CSE Section/Group:628-A
Date of Performance:20/01/24 Semester:6th
Subject:CC&DS Lab Subject code:21CSP-378
1. Aim:
To install a C compiler within the virtual machine established using VirtualBox
and run basic programs.
2. Objective: Install a C compiler in OS of virtual machine of Host system and
then run a basic c program.
3. Steps to Install:
Step 1: Set Up a Virtual Machine:
• Download and install VirtualBox on your host machine.
• Create a new virtual machine within VirtualBox.
• Install an operating system on the virtual machine (e.g., Ubuntu, Fedora,
etc.). You can download the ISO image of the OS from their official
websites. For this experiment I installed linux lite.
Step 6: Open a terminal and navigate to the directory where you saved your C
program.
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
• Compile the program using the following command: gcc file.c -o file
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
Learning Outcome:
Understand how to create Virtual Machines with OS.
Learned how to use linux terminal.
Learned how to install various resources in linux.
Wrote a basic C program on text editor and compiled it on gcc using linux
terminal.
Executed a basic C program.