LINUX
LINUX
Concepts
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, Install and
Configure Linux
Lab
Option 1 Design
Option 2
Greg Kurtzer
Red Hat OS
2014
CentOS vs. CentOS
Stream
Before Feb 2021
After Feb
2021
Question???
Is it worth learning
CentOS
• Regarding CentOS
• CentOS 7
version
• CentOS 8
VMWare player Oracle
Stream VirtualBox
• CentOS 9 Virtualization software
Stream
Download and Install
Linux (CentOS 8)
Skip… 8
Virtualization software
Install Linux on
Option 2 Cloud
Skip…
Virtual Machine
Cloud Services
Different Ways to
Install OS
NEXT
RedhatLESSON
Linux Installation
OPTIONAL
Redhat Linux
Installation
Linux Ubuntu Installation
OPTIONAL
Oracle virtual Machine
Management
Keyboard Keys Used in
Linux
Putty
Client
RDP Sharing
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
192.168.1.5
Linux
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
Closet
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
2. Root as /: the very first directory in Linux is also referred as root directory
3. Root home directory: the root user account also has a directory located in
/root which is called root home directory
Changing Password
• 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 httpd
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
• ln
• ln -s