Department of Computer Science and Engineering Operating Structures Lab
Department of Computer Science and Engineering Operating Structures Lab
CO 204
LAB FILE
Objective: To download and install Virtual box, and Linux OS over virtual machine.
System specifications:
● 16Gb RAM, 512 SSD.
● 11th Gen Intel(R) Core (TM) i5-11800H @ 2.30GHz 2.30 GHz
Procedure:
● Open windows powerShell and run command WSL –Install.
● Set up the username and password for Ubuntu.
● After setting up you can run Linux commands.
Remarks:
Ubuntu was successfully Installed on my computer.
EXPERIMENT-2
Objective: To study the Linux architecture and introduction to shell scripting and explain.
Theory:
Components of LINUX System :
1. Kernel - The kernel is a computer program that is the core of a computer’s operating system, with complete
control over everything in the system. It manages the following resources of the Linux system – File
management, Process management, I/O management, Memory management, Device management etc.
2. Shell - A shell is a special user program that provides an interface for the user to use operating system
services. Shell accepts human-readable commands from users and converts them into something that the
kernel can understand.
Objective: Run the basic commands on the Linux terminal and explain them.
Commands and Explanation:
Output:
EXPERIMENT-4
Shell Script:
Output:
EXPERIMENT-5
Objective: Write an awk script to find the number of characters, words and lines in a file.
Theory: Awk is a scripting language used for manipulating data and generating reports. The awk command
programming language requires no compiling and allows the user to use variables, numeric functions, string
functions, and logical operators.
Code:
Output:
EXPERIMENT-6
Objective: Write a shell script to print the date and time and that runs at 8:00 am every day.
Theory:
Shell Script: The shell script will contain commands to print the current date and time. We'll use the date
command for this purpose.
Cron Job: Cron is a time-based job scheduler in Unix-like operating systems. We'll create a cron job to
schedule the execution of our shell script at 8:00 AM every day.
Code:
Output: