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

What are the system commands in Linux

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Editor to share with you what the system commands in Linux, I believe most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Ps

View the status of processes in the system

# ps-auxUSER PID% CPU% MEM VSZ RSS TTY STAT START TIME COMMAND output value means USER process owner PID process id%CPUCPU occupancy% MEM memory usage VSZ virtual memory usage unit kbRSS fixed memory unit kbTTY terminal STAT process state TIME actually uses the time COMMAND command name and parameter top of CPU

Dynamic monitoring of process activity and system load and other information

# toptop-23:27:06 up 90 days, 22:36, 1 user, load average: 0.00,0.04, 0.05Tasks: 66 total, 1 running, 65 sleeping, 0 stopped, 0 zombie%Cpu (s): 0.7 us, 0.3 sy, 0.0 ni, 99.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 stKiB Mem: 1883492 total, 205612 free, 292736 used 1385144 buff/cacheKiB Swap: 0 total, 0 free, 0 used. 1409324 avail Mem

Pidof

Query the pid of a process

# pidof sshd21995 1142free# free-h total used free shared buff/cache availableMem: 1.8G 285M 147M 352K 1.4G 1.3GSwap: 0B 0B 0B transfer character

A variable after the backslash (\) becomes a simple string.

Single quotation marks ('') escape where the variable is a simple string

Double quotation marks ("") retain the variable attributes and do not escape

The above is all the contents of this article "what are the system commands in Linux?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Internet Technology

Wechat

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

12
Report