Introduction to Linux
DevOps Essentials
2020
@2020 copyright KalKey training
Environment Variables
Execution path
In BASH, execution of a program happens when you enter the
program name. Your PATH variable keeps you from having to enter
the full path to the program
Modifying your PATH
$ echo $PATH
$ PATH=$PATH:/data/$USER
$ echo $PATH
PATH set using above method is not persistent after reboot.
To path changes permanent, need to modify the .bashrcfile in your home
directory or update /etc/environment.
@2020 copyright KalKey training
Package Management
@2020 copyright KalKey training
Package Management : RPMRPM Package Manager (RPM)
YUM and DNF are simply front-ends to a lower-level tool called RPM. The following
commands should be run as root. The flags are expanded here, but the abbreviated
syntax is also included:
 rpm --install --verbose --hash local-rpm-file-name.rpm - Installs an rpm from
the file. rpm is also capable of installing RPM files from http and ftp
sources as well as local files.
 rpm --erase package-name(s) - Removes the given package.
 rpm --query --all - lists the name of all packages currently installed.
 rpm --query package-name(s) - allows you to confirm whether a given package is
installed in your system.
 rpm --query --info package-name(s) - displays the information about an
installed package.
 rpm --query --list package-name(s) - generates a list of files installed by a
given package. This is complemented by:
 rpm --query --file - checks to see what installed package “owns” a given file.
Note that RPM does not automatically check for dependencies.
@2020 copyright KalKey training
Package Management : dpkg
Debian Package Manager (DEB)
Apt-get and apt-cache are merely frontend programs that provide a more usable
interface and connections to repositories for the underlying package management tools
called dpkg.
 dpkg -i package-file-name.deb - Installs a .deb file.
 dpkg --list search-pattern - Lists packages currently installed on the
system.
 dpkg --configure package-name(s) - Runs a configuration interface to set
up a package.
 dpkg-reconfigure package-name(s) - Runs a configuration interface on an
already installed package.
 dpkg --purge --force-all package – Remove/ uninstall package.
@2020 copyright KalKey training
Start and Stop services
 systemctl commands
sudo systemctl [action] [service name]
 service commands
sudo service [service name] [action]
To start a service:
sudo systemctl start ufw
sudo service ufw start
To stop a service:
sudo systemctl stop ufw
sudo service ufw stop
To restart a service:
sudo systemctl restart ufw
sudo service ufw restart
To check the status of service:
sudo systemctl status ufw
sudo service --status-all
Set service to start at boot:
sudo systemctl enable ufw
sudo chkconfig ufw on
Disable service to start at boot:
sudo systemctl disable ufw
sudo chkconfig ufw off
@2020 copyright KalKey training
Lab 3
1. Install httpd using yum.
2. check status of httpd service.
3. Check httpd is running under which user using ps.
4. Download file index.html from below link, in your home directory.
http://3.93.79.170:9090/webfile.tar.gz
5. Extract that tar file. You will have one file called index.html
6. Next, copy that index.html to /var/www/html/ (You might be asked to overwrite an
existing file, do that.)
7. Set ownership and permission on that file as per the permission of /var/www/html
8. Restart httpd service.
9. Check if your webserver is working or not with below command:
# curl http://localhost
Output should be like:
Note: If your webserver is having issue run below command and try again.
# setenforce 0
@2020 copyright KalKey training

More Related Content

PDF
Samba
PPT
Installing softwares in linux
PDF
Athenticated smaba server config with open vpn
DOCX
Basic linux commands
PPTX
Presentation Linux Server setup Advance Networking
PDF
Pulp - Software Repository Management - a brief introduction
PDF
Configuration IPTables On CentOS 8
ODP
Samba
Installing softwares in linux
Athenticated smaba server config with open vpn
Basic linux commands
Presentation Linux Server setup Advance Networking
Pulp - Software Repository Management - a brief introduction
Configuration IPTables On CentOS 8

What's hot (19)

PPTX
Linux Commands
PPTX
PDF
IPTables Lab
PDF
Mail
PPTX
Installing hadoop on ubuntu 16
PDF
Termux commands-list
DOCX
Cloning database using srdf copy
DOC
Arp Dan Ipconfig Syntax
PPT
Apache1.ppt
PDF
Dhcp
PDF
Firewalld LAB
PPT
2.4.1 use debian package management v2
PPT
101 2.4 use debian package management
PDF
Modul server debian 5
DOCX
Installing lemp with ssl and varnish on Debian 9
PDF
Configuration of NTP Server on CentOS 8
PPT
101 2.4 use debian package management
PPT
101 2.4b use debian package management v2
PDF
Linux cheat-sheet
Linux Commands
IPTables Lab
Mail
Installing hadoop on ubuntu 16
Termux commands-list
Cloning database using srdf copy
Arp Dan Ipconfig Syntax
Apache1.ppt
Dhcp
Firewalld LAB
2.4.1 use debian package management v2
101 2.4 use debian package management
Modul server debian 5
Installing lemp with ssl and varnish on Debian 9
Configuration of NTP Server on CentOS 8
101 2.4 use debian package management
101 2.4b use debian package management v2
Linux cheat-sheet
Ad

Similar to Linux day 3ppt (20)

PPTX
Introduction to linux day1
PPTX
Introduction to linux day-3
PPT
Linux Troubleshooting
PPTX
Software management in linux
PPTX
RPM (LINUX)
PDF
Ubuntu Linux Unleashed 2021 Edition Helmke
PDF
Instant download Ubuntu Linux Unleashed 2021 Edition Helmke pdf all chapter
PPTX
Linux Package Management.pptx
PDF
Yum package manager
PPTX
6 - Package Management in Red Hat
PPTX
(Practical) linux 104
PDF
linux installation.pdf
PPTX
Linux day 2.ppt
PDF
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
PDF
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
PDF
Closing the gap between Distros(devs) and their Users(ops)
PDF
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
PDF
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
PDF
Get Started with Linux Management Command line Basic Knowledge
PDF
Linux for professional
Introduction to linux day1
Introduction to linux day-3
Linux Troubleshooting
Software management in linux
RPM (LINUX)
Ubuntu Linux Unleashed 2021 Edition Helmke
Instant download Ubuntu Linux Unleashed 2021 Edition Helmke pdf all chapter
Linux Package Management.pptx
Yum package manager
6 - Package Management in Red Hat
(Practical) linux 104
linux installation.pdf
Linux day 2.ppt
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
Closing the gap between Distros(devs) and their Users(ops)
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
Linux Administration: A Beginner's Guide 8th Edition Wale Soyinka
Get Started with Linux Management Command line Basic Knowledge
Linux for professional
Ad

More from Kalkey (20)

PPT
Docker swarm
PPTX
Docker advance topic (2)
PPTX
Docker introduction (1)
PPTX
Nexus
PPTX
Sonarqube
PPTX
Introduction of tomcat
PPTX
Jenkins advance topic
PPTX
Jenkins introduction
PPTX
Intro
PPTX
Terraform day 3
PPTX
Terraform day 2
PPTX
Terraform day 1
PPTX
Ansible day 3
PPTX
Cloud computing 1
PPTX
Shell programming 2
PPTX
Adnible day 2.ppt
PPTX
Shell programming 1.ppt
PPTX
Debasihish da final.ppt
PPTX
Ansible day 1.ppt
PPTX
Docker advance topic
Docker swarm
Docker advance topic (2)
Docker introduction (1)
Nexus
Sonarqube
Introduction of tomcat
Jenkins advance topic
Jenkins introduction
Intro
Terraform day 3
Terraform day 2
Terraform day 1
Ansible day 3
Cloud computing 1
Shell programming 2
Adnible day 2.ppt
Shell programming 1.ppt
Debasihish da final.ppt
Ansible day 1.ppt
Docker advance topic

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Complications of Minimal Access-Surgery.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
Virtual and Augmented Reality in Current Scenario
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
HVAC Specification 2024 according to central public works department
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
B.Sc. DS Unit 2 Software Engineering.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
Complications of Minimal Access-Surgery.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
History, Philosophy and sociology of education (1).pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Empowerment Technology for Senior High School Guide
Unit 4 Computer Architecture Multicore Processor.pptx
Virtual and Augmented Reality in Current Scenario
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Hazard Identification & Risk Assessment .pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
HVAC Specification 2024 according to central public works department
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين

Linux day 3ppt

  • 1. Introduction to Linux DevOps Essentials 2020 @2020 copyright KalKey training
  • 2. Environment Variables Execution path In BASH, execution of a program happens when you enter the program name. Your PATH variable keeps you from having to enter the full path to the program Modifying your PATH $ echo $PATH $ PATH=$PATH:/data/$USER $ echo $PATH PATH set using above method is not persistent after reboot. To path changes permanent, need to modify the .bashrcfile in your home directory or update /etc/environment. @2020 copyright KalKey training
  • 4. Package Management : RPMRPM Package Manager (RPM) YUM and DNF are simply front-ends to a lower-level tool called RPM. The following commands should be run as root. The flags are expanded here, but the abbreviated syntax is also included:  rpm --install --verbose --hash local-rpm-file-name.rpm - Installs an rpm from the file. rpm is also capable of installing RPM files from http and ftp sources as well as local files.  rpm --erase package-name(s) - Removes the given package.  rpm --query --all - lists the name of all packages currently installed.  rpm --query package-name(s) - allows you to confirm whether a given package is installed in your system.  rpm --query --info package-name(s) - displays the information about an installed package.  rpm --query --list package-name(s) - generates a list of files installed by a given package. This is complemented by:  rpm --query --file - checks to see what installed package “owns” a given file. Note that RPM does not automatically check for dependencies. @2020 copyright KalKey training
  • 5. Package Management : dpkg Debian Package Manager (DEB) Apt-get and apt-cache are merely frontend programs that provide a more usable interface and connections to repositories for the underlying package management tools called dpkg.  dpkg -i package-file-name.deb - Installs a .deb file.  dpkg --list search-pattern - Lists packages currently installed on the system.  dpkg --configure package-name(s) - Runs a configuration interface to set up a package.  dpkg-reconfigure package-name(s) - Runs a configuration interface on an already installed package.  dpkg --purge --force-all package – Remove/ uninstall package. @2020 copyright KalKey training
  • 6. Start and Stop services  systemctl commands sudo systemctl [action] [service name]  service commands sudo service [service name] [action] To start a service: sudo systemctl start ufw sudo service ufw start To stop a service: sudo systemctl stop ufw sudo service ufw stop To restart a service: sudo systemctl restart ufw sudo service ufw restart To check the status of service: sudo systemctl status ufw sudo service --status-all Set service to start at boot: sudo systemctl enable ufw sudo chkconfig ufw on Disable service to start at boot: sudo systemctl disable ufw sudo chkconfig ufw off @2020 copyright KalKey training
  • 7. Lab 3 1. Install httpd using yum. 2. check status of httpd service. 3. Check httpd is running under which user using ps. 4. Download file index.html from below link, in your home directory. http://3.93.79.170:9090/webfile.tar.gz 5. Extract that tar file. You will have one file called index.html 6. Next, copy that index.html to /var/www/html/ (You might be asked to overwrite an existing file, do that.) 7. Set ownership and permission on that file as per the permission of /var/www/html 8. Restart httpd service. 9. Check if your webserver is working or not with below command: # curl http://localhost Output should be like: Note: If your webserver is having issue run below command and try again. # setenforce 0 @2020 copyright KalKey training