linux ps aux_“ ps aux”命令在Linux中的含义和作用

本文介绍了Linux中的`ps aux`命令,该命令用于获取系统上运行进程的详细信息。通过`aux`选项,可以查看所有用户进程、进程所有者以及带有终端信息的进程。这对于系统管理员来说是一个非常有用的工具,能够提供全面的进程状态视图。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

linux ps aux

linux ps aux

ps command is used to get detailed information about the process running on Linux, Unix, and BSD systems. There are some popular options and use cases for ps where one of them is aux options. We will look at this use case in this tutorial. For more detailed ps tutorial look following.

ps命令用于获取有关在Linux,Unix和BSD系统上运行的进程的详细信息。 ps有一些流行的选项和用例,其中一个是aux选项。 我们将在本教程中研究这个用例。 有关更详细的ps教程,请参见以下内容。

Linux ps Command Tutorial List Processes with Examples

Linux ps命令教程列表示例流程

a选项为所有用户显示过程(a Option Shows Process For All Users)

The default behavior of the ps command is listing only current user processes. All other users owned processes will be not shown. a options will print all other user processes too.

ps命令的默认行为是仅列出当前用户进程。 所有其他用户拥有的进程将不会显示。 a选项也会打印所有其他用户进程。

$ ps a
a Option Shows Process For All Users
a Option Shows Process For All Users
一个选项为所有用户显示过程

We can see that the a option provides more information about the listed processes. Information like the full path, parameters and stat are listed.

我们可以看到a选项提供了有关所列过程的更多信息。 列出了诸如完整路径,参数和统计信息之类的信息。

u选项显示进程所有者 (u Option Shows Process Owner)

The default behavior about showing process information will not print the owner of the process. But in most cases, the process owner data will very helpful. So we can use u option in order to show the process owner.

关于显示流程信息的默认行为不会打印流程的所有者。 但是在大多数情况下,流程所有者数据将非常有帮助。 因此,我们可以使用u选项来显示进程所有者。

$ ps u
u Option Shows Process Owner u选项显示流程所有者

x选项显示带有终端信息的过程(x Option Shows Processes With Terminal Information)

ps will show only the terminal attached process by default. If we want to show other processes those not attached to the terminal we can use x option.

ps默认情况下仅显示终端连接过程。 如果要显示其他未连接到终端的进程,可以使用x选项。

$ ps x

ps aux显示用户,所有过程和终端信息 (ps aux Shows User, All Processes and Terminal Information)

System administrators generally use all of the previously described options in order to get all details in a single ps command execution. So we can combine all these options like below which will list user, terminal information for all processes currently running on the current system.

系统管理员通常使用所有前面描述的选项,以便在单个ps命令执行中获得所有详细信息。 因此,我们可以像下面这样组合所有这些选项,以列出当前在当前系统上运行的所有进程的用户,终端信息。

$ ps aux
ps aux Shows User, All Processes and Terminal Information
ps aux显示用户,所有过程和终端信息
LEARN MORE  Schedule Jobs and Tasks With Windows At Command
了解更多信息使用Windows At Command计划作业和任务

翻译自: https://www.poftut.com/ps-aux-command-mean-linux/

linux ps aux

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值