A) Linux Is The Choice of Operating System For Network Administrators. Explain. Answer
A) Linux Is The Choice of Operating System For Network Administrators. Explain. Answer
Subject: Linux
Exam Roll no: 17530214
Submitted to: Rajiv Sir
Stage 1: BIOS
BIOS stands for Basic Input/Output System. In simple terms, the
BIOS loads and executes the Master Boot Record (MBR) boot
loader.
When you first turn on your computer, the BIOS first performs
some integrity checks of the HDD or SSD.
Then, the BIOS searches for, loads, and executes the boot loader
program, which can be found in the Master Boot Record (MBR).
The MBR is sometimes on a USB stick or CD-ROM such as with a
live installation of Linux.
Once the boot loader program is detected, it's then loaded into
memory and the BIOS gives control of the system to it.
Stage 2: MBR
MBR stands for Master Boot Record, and is responsible for loading
and executing the GRUB boot loader.
The MBR is located in the 1st sector of the bootable disk, which is
typically /dev/hda, or /dev/sda, depending on your hardware. The
MBR also contains information about GRUB, or LILO in very old
systems.
Stage 3: GRUB
Stage 4: Kernel
Stage 5: Init
Init identifies the default init level from /etc/inittab and uses that to
load all appropriate program.
Following are the available run levels
0 – halt
1 – Single user mode
2 – Multiuser, without NFS
3 – Full multiuser mode
4 – unused
5 – X11
6 – reboot
iii) groupmod:
groupmod command in Linux is used to modify or change the
existing group on Linux system. It can be handled by superuser or
root user.
Syntax: groupmod [option] GROUP
Output:
oldgroup:x:777:
iv) ls:
ls command is a basic command in Linux used to List files and
directories. ls command comes with so many arguments and
features like you can sort files and directories by Date, by Size,
able to check hidden files and directories, permissions, inode
information and so on.
Syntax: ls
Example: ls
documents pictures downloads public data Videos desktop
cct acer
3. b) Write the syntax for file permissions for the file system for given
filename "new.sh" for following conditions:
(1) write and execute by owner (2) read by group (3) execute by all
(4)read by owner, execute by group, read by others.
Answer:
i) write and execute by owner:
chmod 300 new.sh
Let’s assume we want to copy a file from Acer user’s home directory to
/opt/back folder, execute the below rsync command.
In above we have used the options like -z for compression, -v for verbose
output and -h for human readable output.
OUTPUT:
Enter a number
2
The square is 4
a) Discover:
Discover Message is the first message of the DORA process. In this
message, the DHCP client wants to discover a DHCP Server and hence
sends a DHCP Discover message. Different fields of Discover message
are :
b) Offer:
As soon as DHCP Server receives Client Discover message, the
DHCP server reply to DHCP client as an offer message.
c) Request:
Now, the DHCP client machine receives the DHCP Offer message
and replies with a DHCP request message. This message basically tells
the DHCP server that I’m fine with this IP address. Please allocate this IP
address to me. The DHCP Request Message header has the following
main fields:
d) Acknowledgment:
DHCP acknowledge message is the last message of the DORA
process. It is sent by the DHCP Server to DHCP Client. This message is a
reply to the DHCP Request message. This message header has the
following main fields:
Features: