Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux Note 3 Linux commands that beginners must master.

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Common system working commands

1.echo command

The echo command is used to output the value of a string or variable from the terminal in the format of "echo [string | $variable]".

2.date command

The date command is used to display and set the time or date of the system in the format "date [options] [+ specified format]".

Parameters and roles in the date command

Parameter action% t jump box [Tab]% H hours (000023)% I hours (000023hours)% M minutes (000059)% S seconds (000059)% j the day in the middle of the year

3.reboot command

The reboot command is used to restart the system in the format reboot.

4.poweroff command

The poweroff command is used to shut down the system in the format poweroff.

5.wget command

The wget command is used to download network files in the terminal in the format of "wget [parameter] download address".

Parameters and functions of the wget command

Parameter function-b background download mode-P download to the specified directory-t maximum number of attempts-c breakpoint resume-p download all resources on the download page, including pictures, videos, etc.-r recursive download

6.ps command

The ps command is used to view the status of processes on the system in the format "ps [parameters]".

The role of the parameter-a displays all processes (including those of other users)-u users and other details-x displays processes without control terminals

7.top command

The top command, in the format top, is used to dynamically monitor information such as process activity and system load.

8.pidof command

The pidof command is used to query the pid value of a specified service process in the format "pidof [parameter] [service name]".

9.kill command

The kill command is used to terminate a service process with a specified PID in the format "kill [parameters] [process PID]".

10.killall command

The killall command is used to terminate all processes corresponding to a service with a specified name in the format "killall [parameter] [service name]".

System status detection command

1.ifconfig command

The ifconfig command is used to obtain information such as network card configuration and network status in the format of "ifconfig [network equipment] [parameters]".

2.uname command

The uname command is used to view information such as the kernel and version of the system in the format "uname [- a]".

3.uptime command

Uptime is used to view the load information of the system in the format uptime.

4.free command

Free is used to display memory usage information on the current system in the format "free [- h]".

5.who command

Who is used to view the user terminal information of the currently logged-in host in the format of "who [parameters]".

6.last command

The last command is used to view login records for all systems in the format "last [parameters]".

7.history command

The history command is used to display historically executed commands in the format "history [- c]".

8.sosreport command

The sosreport command is used to collect system configuration and architecture information and output diagnostic documents in sosreport format.

Working directory switch command

1.pwd command

The pwd command is used to display the working directory where the user is currently located in the format "pwd [options]".

2.cd command

The cd command is used to switch the work path in the format "cd [directory name]".

3.ls command

The ls command is used to display file information in the directory in the format "ls [options] [File]".

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report