Professional Documents
Culture Documents
Linux & • Being an open-source OS, anyone can do their own customizations and use
the system for various purposes.
History of
• In 1991, Linus Torvalds developed this OS as a part of his university project
• In 1992, Linus released this OS to the world under General Public
License[GPL ], so that anyone can run, study, share and modify the software
Linux • As the years passed, various flavours of Linux gets originated.
Eg: Red Hat, Fedora, Debian, Ubuntu, Kali
This is a command line-based operating system.
Shell is the program that acts as an interface to users, for the operating
system. Major Linux shells are
Bourne Shell (sh)
More info C Shell (csh)
about Linux
KornShell (ksh)
Bourne Again Shell (bash)
In Linux, there are three different user types: superuser, regular, and
service
A service (or daemon) is a script that runs in the background. It listens
continuously for incoming requests and sends a response based on the
given request. This is different from processes
There are 6 distinct stages in the typical booting process.
Linux Server 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 contains information about GRUB.
3) GRUB (Grand Unified Boot Loader)
Grand Unified Bootloader, is the typical boot loader for most modern Linux systems. The
GRUB splash screen is often the first thing you see when you boot your computer. It has a simple menu
where you can select some options. If we have multiple kernel images installed, we can select the one
which we want system to boot with. By default, the latest kernel image is selected.
The default GRUB configuration file is at /boot/grub/grub.conf or /etc/grub.conf. Sample config file of GRUB
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5PAE)
root (hd0,0)
The kernel then establishes a temporary root file system using Initial RAM Disk (initrd) until the real file system is mounted.
5) Init
• Now the system starts to execute the runlevel programs.
• It would look for an init file, to decide the Linux run level.
5) Init
Now the system starts to execute the runlevel programs.
It would look for an init file, to decide the Linux run level.
Following are the available run levels 0-6
0 – halt
1 – Single user mode
2 – Multiuser, without NFS
3 – Full multiuser mode
Booting of 4 – unused
5 – X11
Basic
[root@localhost~]#
linux 1: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:50:56:80:07:e2 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.33/24 brd 192.168.0.255 scope global eth0
inet6 fe80::250:56ff:fe80:7e2/64 scope link valid_lft forever preferred_lft
forever
[root@localhost]#
• date To display current date , time and year
• Uptime To display the system powerup time.
• pwd Present working directory
[root@localhost]# pwd
/root
[root@localhost]#
• cd Change Directory
[root@localhost]# cd /var
commands in [root@localhost]# ls
Linux
[root@localhost]#
[root@localhost]#
commands in
• vim <filename> To edit the file
• systemctl restart network command to restart our network service
Groups