Linux common management and maintenance commands

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/huoguang_/article/details/90416376

System Services

command Case Explanation
netstat netstat -tupln Lists information network connectivity of the computer
  netstat -n Not resolve host names and user names, etc.
  netstat -l There on a computer display which ports are listening
  netstat -p Show that the program which port is in use
  netstat-t Display tcp
  netstat -u Display udp
     
service functions systemctl function  
service service names start systemctl start service name  
stop service service name systemctl stop service name  
Service Name service restart systemctl restart the service name  
service service name condrestart systemctl try-restart service name  
service service name reload systemctl reload service name  
Service Name service status systemctl starus service name  
service --status-all systemctl list-units --type service --all  
     
chkconfig function systemctl function  
chkconfig service name on systemctl enable service name  
chkconfig name off service systemctl disable the service name  
chkconfig --list service name systemctl status / is-enabled service name  
chkconfig --list systemctl list-unit-files --type service  

System Process

command Case Explanation
ps   List processes where sell scheduled to run

 

Package

command Case Explanation
rpm   rpm package management program
  rpm -qa Displays the current software packages installed on the system
  rpm -qf file name This document is a show which package installed
  rpm -qi package names Displays information on this package
  rpm -ql package names List All files in the package
  rpm -qip package file name Display information about this package
  rpm -qlp package file name Lists all the files contained in this package
  rpm -i install software
  rpm -U Upgrading an older version of the software
  rpm -F Refresh / update the old version of the software
  rpm -e Remove / Remove Software
 

rpm -ivh Software name

install software

 

   
yum   yum package management tools
  yum list All software packages all libraries on the list system
  yum list installed All packages installed on the system are listed
  yum list available Any software library opened on the list all installed packages
  yum install package names Installation of a new software

Guess you like

Origin blog.csdn.net/huoguang_/article/details/90416376