Part 1 +2 + 3
Part 1 +2 + 3
LINUX
C ONCEP TS
What is Operating
System?
As per Wikipedia
An operating system is system software that manages computer hardware and
software resources, and provides common services for computer programs
In simple words
An operating system (OS) is software that acts as a middleman or a bridge between
computer hardware and the computer user. It provides a user interface and controls
the computer hardware so that software can function
Redhat
Linux Users
• US Government and Agencies (National, State, Federal and International)
• NASA
• Health Care
• The Bullet Trains in Japan runs at the speed of 150-215 m/h
• Traffic Control
• Financial Institutes e.g. NYSE
• Entertainment industries (Cinemas, Production houses etc.)
• World e-commerce leaders, including Amazon, eBay, PayPal, and Walmart run their
platform on Linux
• Other fortune 500 companies e.g. Google, IBM, McDonalds, Facebook etc.
DOWNLOAD, INS TALL
AND C ONFIGURE
LINUX
Lab
Option 1 Design
Option 2
Greg Kurtzer
Red Hat OS
2014
CentOS vs. CentOS
Stream
Before Feb 2021
Fedora RHEL
CentOS
After Feb
2021
Question???
Cloud Services
DIFFERENT WAYS
TO INSTALL OS
NEXT
LESSON
REDHAT LINUX
INS TALLATION
OPTIONAL
REDHAT LINUX
INSTALLATION
LINUX UbUNTU
INS TALLATION
OPTIONA
L
ORACLE V IRTUAL
MACHINE MANAGEMENT
Keyboard Keys Used in
Linux
Putty
Clien
RDP Sharin t
g
Linux to Linux
SSH
Access to Linux System
Important:
Windows 10 or newer
version
SSH built-in client
ssh 192.168.1.5
Download and Install
Putty
If you are using Windows 10 or newer version
then you do NOT have to download or install
Putty
Download and Install
Putty
Putty is a software which allows you to connect from a Windows
system to Linux system remotely
192.168.1.5
Access to Linux from
MAC
Linux
ssh 192.168.1.5
• The newer version of CentOS might not have the ifconfig command, therefore,
use
“ip addr” command instead
• To use ifconfig in 7.5 or later version then run = “yum install net-tools”
Access to Linux via
SSH
Linux
Command Prompts and Getting Prompts Back
Closet
Shirts Jackets
Accessorie Shoes
s
Pants
Skirts
Introduction to Filesystem
• What is a Filesystem?
• It is a system used by an operating system to manage files. The
system controls how data is saved or retrieved
Close
t
Shirts Jackets
Accessorie Shoes
s
Pants
Skirts
Introduction to Filesystem
• Operating system stores files and directories in an organized and
structured way
• System configuration file = Folder A
• User files = Folder B
• Log files = Folder C
• Commands or scripts = Folder D and so on
• "cd" stands for change directory. It is the primary command for moving you around the
filesystem.
• “pwd” stands for print working directory. It tells you where you current location is.
• “ls” stands for list. It lists all the directories/files within a current working directory
• Using of TAB key to auto-complete
Linux File or Directory
Properties
Each file or directory in Linux has detail information or
properties
Type # of Links Owner Group Size Month Day Time Name
The second column is the number of hard links to the file. For
a directory, the number of hard links is the number of
immediate subdirectories it has plus its parent directory and
itself
Linux File Types
What is
Root?
• There are 3 types of root on Linux system
1. Root account: root is an account or a username on Linux machine and it is
the most powerful account which has access to all commands and files
3. Root home directory: the root user account also has a directory located in
/root which is called root home directory
Changing
Password
• You should change your initial password as soon as you
login
• An absolute path always begins with a "/". This indicates that the path starts at the root directory.
An
example of an absolute path is
cd /var/log/httpd
• A relative path does not begin with a "/". It identifies a location relative to your current position.
An example of a relative path is:
cd /var
cd log
cd
Creating Files and
Directories
• Creating Files
✔ touch
✔ cp
✔ vi
• Creating
Directories
✔ mkdir
Copying
Directories
• Command to copy a directory
• cp
• To copy a directory on Linux, you have to execute the “cp” command with the “-
R”
option for recursive and specify the source and destination directories to be copied
• cp -R <source_folder> <destination_folder>
Find Files and Directories
• find
• locate
Difference Between find and locate
• locate uses a prebuilt database, which should be
regularly updated, while find iterates over a filesystem
to locate files. Thus, locate is much faster than find , but
can be inaccurate if the database (can be seen as a
cache) is not updated
• ln
• ln -s