You are on page 1of 18

Galgotias University Dept.

of CSE

NETWORK OPERATING SYSTEM LAB


(BTCS9504)
LAB FILE
FOR
B. Tech (CSE)

School of Computing Science & Engineering


Galgotias University, Greater Noida
Uttar Pradesh

SUBMITTED BY- SUBMITTED TO-


Anjali Mishra Bhairvee Singh
19SCSE1010230 Assistant Professor
19021011419
Elec Sec 2 (P1)
Galgotias University Dept. of CSE

List of Experiments
BTCS9504 – Network Operating System Lab
B.Tech CSE

Ex.
Experiment Name Date Sign
No.

1 Linux Basic Installation

2 Linux shell and Basic shell commands

Command Line File Manipulation, file processing, and


3
managing the file system

Basic Bash Scripting, writing and executing bash


4
scripts

5 User Administration

6 To study commands for Linux file system permissions

7 File System Mounting

8 Linux Networking
Galgotias University Dept. of CSE

Experiment 1
Objective: Linux Basic Installation

Step 1: Download and install VirtualBox

Go to the website of Oracle VirtualBox and get the latest stable version from here https://www.virtualbox.org/

Step 2: Download the Linux ISO

Next, we need to download the ISO file of the Linux distribution. We can get this image from the official
website of the Linux distribution you are trying to use.

Step 3: Install Linux using VirtualBox

Now we have installed VirtualBox and we have downloaded the ISO for Linux. We are now set to install Linux
in VirtualBox.

Start VirtualBox, and click on the New symbol. Give the virtual OS a relevant name.

Allocate RAM to the virtual OS. My system has 8GB of RAM and I decided to allocate 2GB of it.
Galgotias University Dept. of CSE

Create a virtual disk. This serves as the hard disk of the virtual Linux system. It is where the virtual system will
store its files.

I recommend using the VDI file type here.


Galgotias University Dept. of CSE

We can choose either the “Dynamically allocated” or the “Fixed size” option for creating the virtual hard disk.

The recommended size is 10 GB. However, I suggest giving it more space if possible. 15-20 GB is preferable.
Galgotias University Dept. of CSE

Experiment 2
Objective: Linux shell and Basic shell commands

Study of Unix/Linux general purpose utility command list obtained from (date, time, cal, whoami, cd, ls,
mkdir, rmdir, echo, kill, history, chmod, pwd ) commands.

(i) Date: date command prints the current date time.

(ii) Cal: cal command is used to display a calendar in your shell, by default it will display the current month

(iii) Whoami: whoami command will tell you which user account you are using in this system.

(iv) mkdir, cd, echo, ls: To create the new directory, To change the position from one directory to another, To
create a new file in that directory, To show the list of files/folders in a particular directory.
Galgotias University Dept. of CSE

(v) tree: tree is a recursive directory listing command or program that produces a depth-indented listing of files.

(vi) pwd: It tells in which directory we are currently in.

(vii) history:
Galgotias University Dept. of CSE

Experiment 3
Objective: Command Line File Manipulation, file processing, and managing the file system

Study of Unix/Linux File manipulation Commands ( cat, touch, creating multiple files using touch, cp, mv,
rm, head, tail, soft and hard link, zip, unzip,file creation using VI Editor)

Create File:

Rename File:
Galgotias University Dept. of CSE
Word Count, Line Count & Character Count:

Delete:

Soft and Hard Links:


Galgotias University Dept. of CSE
Zip file:

Unzip file:
Galgotias University Dept. of CSE

Experiment 4
Objective: Basic Bash Scripting, writing and executing bash scripts

(i) Write a shell script program to display “HELLO WORLD”.

(ii) Write a shell Script program to check whether the given number is even or odd.

(iii) Shell script program to count number of files in a Directory.


Galgotias University Dept. of CSE

Experiment 5
Objective: User Administration

Study of Unix/Linux administration Commands ( ls-l, /etc/passwd, becoming superuser, adding new user,
passwd, usermod, userdel, adding a new group)

Ls -l:

Becoming superuser:

Adding new user, passwd:


Galgotias University Dept. of CSE
Usermod:

Userdel:

Adding a new group:


Galgotias University Dept. of CSE

Experiment 6
Objective: To study commands for Linux file system permissions.

(i) VIEWING FILE/DIRECTORY PERMISSIONS AND OWNERSHIP

(ii) CHANGING FILE/DIRECTORY PERMISSIONS

(iii) CHANGING FILE/DIRECTORY USER OR GROUP OWNERSHIP


Galgotias University Dept. of CSE

Experiment 7
Objective: File system mounting

Study of Unix/Linux Commands ( mounting , unmounting)

Mounting:

Unmounting:
Galgotias University Dept. of CSE

Experiment 8
Objective: Linux Networking

Study of Unix/Linux Commands ( nslookup, ping, /etc/resolv.conf, host dig, traceroute, tracepath)

Nslookup:

Ping:
Galgotias University Dept. of CSE

/etc/resolv.conf:

host dig:

Traceroute:
Galgotias University Dept. of CSE

Tracepath:

You might also like