目录
1. 自带文档翻译
我简单的把Linux自带的帮助文档翻译了一下,形成以下内容,供大家(主要是以后的我自己)参考:
[root@CentOS ~]# ps --help all
Usage: 用法:
ps [options] ps [选项]
Basic options: 基本选项:
-A, -e all processes 全部进程
-a all with tty, except session leaders 所有终端运行的进程,除了session的leaders
a all with tty, including other users 所有终端运行的进程,包括其他用户的
-d all except session leaders 所有的进程,除了session的leaders
-N, --deselect negate selection 反向选择,显示所有的终端的程序,除了当前终端运行的进程
r only running processes 只显示running中的进程
T all processes on this terminal 这个终端上所有的进程
x processes without controlling ttys 没有终端的进程也会被显示出来
Selection by list: 按列表选择:
-C <command> command name 命令名称
-G, --Group <GID> real group id or name 真实的组id或者名称
-g, --group <group> session or effective group name session或者有效的组名称
-p, p, --pid <PID> process id 进程id
--ppid <PID> parent process id 现在的进程id
-q, q, --quick-pid <PID>
process id (quick mode) 进程id(快速模式)
-s, --sid <session> session id session的id
-t, t, --tty <tty> terminal 终端
-u, U, --user <UID> effective user id or name 有效的用户id或者名称
-U, --User <UID> real user id or name 真实的用户id或者名称
The selection options take as their argument either: 选择选项也会作为它们的参数:
a comma-separated list e.g. '-u root,nobody' or 一个逗号分隔符列表 例如 '-u root,nobody' 或者
a blank-separated list e.g. '-p 123 4567' 一个空格分隔符列表 例如 '-p 123 4567'
Output formats: 输出格式:
-F extra full 额外的完整
-f full-format, including command lines 完整的格式
f, --forest ascii art process tree 用ASCII码的形式显示进程树
-H show process hierarchy 显示进程等级
-j jobs format 作业格式
j BSD job control format BSD作业控制格式
-l long format 长格式
l BSD long format BSD长格式
-M, Z add security data (for SELinux) 添加安全数据(为了SELinux,一个特殊的强调安全性的Linux系统)
-O <format> preloaded with default columns 预加载默认的列
O <format> as -O, with BSD personality 像是 -O,使用BSD个性
-o, o, --format <format>
user-defined format 用户自定义格式
s signal format 信号格式
u user-oriented format 用户定向格式
v virtual memory format 虚拟内存格式
X register format 注册格式
-y do not show flags, show rss vs. addr (used with -l) 不显示flags,显示RSS与ADDR(和-l一起使用)
--context display security context (for SELinux) 显示安全性内容(for SELinux)
--headers repeat header lines, one per page 重复头部行,每页一个
--no-headers do not print header at all 从不显示头部
--cols, --columns, --width <num>
set screen width 设置屏幕的宽度
--rows, --lines <num>
set screen height 设置屏幕的高度
Show threads: 显示线程:
H as if they were processes 仿佛它们是进程
-L possibly with LWP and NLWP columns 有可能带有LWP和NLWP列
-m, m after processes 在线程之后
-T possibly with SPID column 可能带有SPID列
Miscellaneous options:
-c show scheduling class with -l option 和-l参数一起显示时间级别
c show true command name 显示真正的命令名称
e show the environment after command 在命令之后显示环境
k, --sort specify sort order as: [+|-]key[,[+|-]key[,...]] 按照某一个属性进行特别的排序
L show format specifiers 显示格式说明符
n display numeric uid and wchan 显示数字UID和WCHAN
S, --cumulative include some dead child process data 包含一些死亡的子进程数据
-y do not show flags, show rss (only with -l) 不显示flags,显示RSS(只有在和-l参数一起工作)
-V, V, --version display version information and exit 显示版本信息和退出
-w, w unlimited output width 无限的输出宽度
--help <simple|list|output|threads|misc|all>
display help and exit 显示帮助和退出
For more details see ps(1). 更多的细节请看ps(1)