Unit II
Unit II
Unit II
Unit - II
What is
Linux?
It’s an
Operating
System
What is
Linux?
server
Linux is fast and secure
Linux is stable
Linux works on a variety of hardware
Linux supports multi processor computers
Linux Has Many Distributions
Linux commands
Linux is a Unix-Like operating system. All the
Linux/Unix commands are run in the terminal
provided by the Linux system.
This terminal is just like the command prompt
recommended.
Overall ext file system size can be from 2 TB
to 32 TB
Ext3
Ext3 stands for third extended file systems.
Introduced in 2001, developed by Stephen
Tweedie.
Starting from Linux kernel 2.4.15 ext3 was
available
The main benefits of Ext3 is that it allows
journaling
Maximum individual file size can be from 16GB
to 2TB
Overall ext3 file system size can be from 2 TB
to 32 TB
XFS
Extent File System
Created by Silicon Graphics to work as a 64-
given to Linux.
It was designed to maintain high performance
command.
mount –t type source mount_point
To unmounts a file system
Unmount/div/<device name>or mount_point
Commands for navigating the Linux
file systems
Pwd – shows the current location in the
directory tree.
cd-change into specified directory name
cd~ alias for your home directory
Cd.. Move up one directory
Cd- return to previous directory
The List Command
Useful options for the “ls” command:
◦ ls -a List all file including hidden file beginning
with a period “.”
◦ ls -ld * List details about a directory and not its
contents
◦ ls -F Put an indicator character at the end of each
name
◦ ls –l Simple long listing
◦ ls –lh Give human readable file sizes
◦ ls –lS Sort files by file size
◦ ls –lt Sort files by modification time
File System Ownership and
Permissions
All files and directories have a individual and
a group ownership.
All files and directories have read (r), write
Command Action
Commands Action
j To move down
k To move up
h To move left
l To move right
To jump lines:
Commands Action
D
Delete the current line from current character to the end of the l
To repeat and undo:
Commands Action
Commands Action
dd Delete a line
Linux shell
Shell is broadly classified into two categories –
Command Line Shell
Graphical shell
Command Line Shell
Shell can be accessed by user using a
command line interface.
A special program called Terminal in
to the user.
A terminal in Ubuntu 16.4 system looks
like this –
Graphical Shells
Graphical shells provide means for manipulating
programs based on graphical user interface (GUI),
by allowing for operations such as opening,
closing, moving and resizing windows, as well as
switching focus between windows.
Window OS or Ubuntu OS can be considered as
good example which provide GUI to user for
interacting with program.
User do not need to type in command for every
actions
A typical GUI in Ubuntu system –
Shell Scripting
ways:
i)pure bash string manipulation,
ii) string manipulation via external
commands.
Basics of pure bash string manipulation:
variables
Concatenate strings inside Bash Shell using
an array
Extract a substring from a string
INVESTIGATION AND PROCESS
MANAGEMENT:
A process means program in execution. It
generally takes an input, processes it and
gives us the appropriate output.
There are basically 2 types of processes.
i. Foreground processes
ii. Background processes
Example of foreground process
Sleep 5
Jobs
Bg
Ps-ef|grep sleep
Fg
Nohup sleep 100
Nice-n5 sleep 100
top
LINUX NETWORKING CLIENTS
Every computer is connected to some other
computer through a network whether
internally or externally to exchange some
information. This network can be small as
some computers connected in your home or
office, or can be large or complicated as in
large University or the entire Internet.
Maintaining a system's network is a task of
• After editing and saving your file, confirm you work with:
• diff bad-the-raven.txt good-the-raven.txt
Finis