linux commonly used commands one: work order system

Work order system:

  •  Help command: man -h \ man --help ( Tips: '-' after the long format with the full option name, '-' after the abbreviation short format with a single letter )
  • echo command: format: echo [string | $ variable]
  • date command: Format: date [Option] [format specified +], view the system time format specified date "+% Y-% m-% d% H:% M:% S" (date +% j,% j with to see this year is the first few days of the year, setting specifies the system time with the '-s', eg: date -s "20170901 8:30:00")
  • Reboot command: reboot
  • Shutdown command: poweroff
  • Download wget command: Format: wget [parameters] [Download], a file on a download site with 'wget file url' (parameters: -b background download mode ;-p downloaded to the specified directory; -c HTTP ; within ;-p download page -t maximum number of attempts all resources such as images, video, etc.; -r recursive download)
  • See the process status command ps: Format: ps [parameters] (- a view all processes; -u users and other details; display process does not control the -X-terminal)
  • Five common process status: R run; S interrupt; D can not be interrupted; Z dead; T stop
  • top command: direct input in the terminal to check the current status of operation and maintenance, the equivalent of linux in the windows task manager
  • pidof command: Specifies a service PID (Process number) value, such as a query sshd service PID: pidof sshd
  • kill command: Format: kill [process PID]
  • killall command: Format: killall [process name], kill all processes corresponding to specify the name of the service

Guess you like

Origin www.cnblogs.com/walkwaters/p/12071026.html