首页 > 其他 > 详细

ps 简介

时间:2014-08-24 22:05:34      阅读:351      评论:0      收藏:0      [点我收藏+]

PS

NAME

    ps - report a snapshot of the current processes.

    显示当前的进程(相当重要的一个命令)

下面主要介绍几个常用的选项,对于其他选项暂时不做要求

a      BSD-style, list all processes with a termial (tty), or to list all processes when used together with the x

       option. 较 -a 选项,此选项显示所有的tty终端上的程序(不包括系统程序)

-a     Select  all processes except both session leaders and processes not associated with a terminal

      只显示本终端的程序

bubuko.com,布布扣

u     Display user-oriented format

      显示进程的用户所有者

-p          根据进程ID查看单个的进程信息,配合-u选项较好。

--pid pidlist     Select by process ID.      

--ppid pidlist     Select by Parent process ID

bubuko.com,布布扣

 

-t ttylist       Select by tty。选择特定的终端、

-g grplist      Select by session OR by effective group name.

-U userlist      Select by effective user ID or name

 

本人喜欢用的组合为:

bubuko.com,布布扣

还有更多的选项与用法,此处暂不介绍。

建议看看top命令

 

ps 简介

原文:http://www.cnblogs.com/IceSword-syy/p/3933549.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!