Linux gitps Command
The Linux gitps command is used to report program status.
gitps (gnu interactive tools process status) is a command used to report and manage program execution. Basically, it reports and manages programs through the ps command, and it can also interrupt or delete unnecessary programs at any time via gitps. Because the gitps command executes the ps command, its parameters are quite similar to those of ps.
Syntax
gitps [acefgjlnrsSTuvwxX][p <程序识别码>][t <终端机编号>][U <帐号名称>]
Parameter Description:
- a Display all programs under the current terminal, including those of other users.
- c When listing programs, show the real command name of each program, without paths, arguments, or daemon flags.
- e When listing programs, show the environment variables used by each program.
- f Use ASCII characters to display a tree structure showing the relationships between programs.
- g Display all programs under the current terminal, including group leader processes.
- j Display program status using job control format.
- l Display program status using a detailed (long) format.
- n Display the USER and WCHAN fields numerically.
- p
Specify a process ID and list the status of that process. - r List only the programs currently running in the current terminal.
- s Display program status using a signal format.
- S When listing programs, include information about interrupted child processes.
- t
Specify a terminal number and list the status of the processes belonging to that terminal. - T Display all programs under the current terminal.
- u Display program status in a user-oriented format.
- U
List the status of processes belonging to that user. - v Display program status using a virtual memory format.
- w Display program status using a wide format.
- x Display all programs, without distinguishing by terminal.
- X Display program status using the old Linux i386 login format.
Example
Display information for a specified user
# gitps hnlinux
Linux Command Reference