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

The Linux system checks which commands are running in the background.

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the Linux system to check the background running process commands, the article is very detailed, has a certain reference value, interested friends must read it!

1.jobs views the commands running in the background of the current terminal, which cannot be viewed after the terminal is closed.

The jobs-l option shows that the status of the PID,jobs for all tasks on the current terminal can be running,stopped,Terminated.

2.ps looks at the current process.

The meaning of the output column:

F represents the flag of the program (flag), and 4 represents the user as super user

S represents the state of the program (STAT)

The UID program is owned by the UID

ID of the PID process

PPID is the ID of its parent program.

Percentage of resources used by C CPU

PRI this is the abbreviation of Priority (priority execution order).

NI, this is the Nice value.

ADDR this is kernel function, indicating which part of the program is in memory. If it is a running program, it is usually "-"

The amount of memory used by SZ

WCHAN, is this program currently in operation? if yes, it indicates that it is in operation.

The terminal location of the TTY login

The CPU time used by TIME.

What are the instructions issued by CMD?

Ps-A: view all process information [root@localhost test6] # ps-A PID TTY TIME CMD 1? 00:00:00 init 2? 00:00:01 migration/0 3? 00:00:00 ksoftirqd/0 4? 00:00:01 migration/1ps-u root: view specified user information ps-ef: show all process information Along with the command line [root@localhost test6] # ps-ef UID PID PPID C STIME TTY TIME CMD root 1 00 Nov02? 00:00:00 init [3] root 2 10 Nov02? 00:00:01 [migration/0] root 3 10 Nov02? 00:00:00 [ksoftirqd/0] ps aux: lists all programs currently in memory. [root@localhost test6] # ps aux USER PID% CPU% MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 10368 676? Ss Nov02 0:00 init [3] root 2 0.0 0.0 00? S0 01 [migration/0] the above is all the contents of this article "Linux system checks what are the background running process commands". Thank you for reading! Hope to share the content to help you, more related 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

Development

Wechat

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

12
Report