Linux gitps Command
The Linux gitps command is used to report program status.
gitps (gnu interactive tools process status) is an instruction used to report and manage program execution. It essentially uses the ps command to report and manage programs, and can also interrupt and delete unnecessary programs at any time through the gitps command. Since the gitps command executes the ps command, its parameters are quite similar to those of the ps command.
Syntax
gitps [acefgjlnrsSTuvwxX][p <process identifier>][t <terminal number>][U <username>]
Parameter Description:
- a: Display all processes in the current terminal, including those of other users.
- c: List processes showing the actual command names without paths, arguments, or resident service identifiers.
- e: List processes showing the environment variables used by each program.
- f: Display a tree-like structure using ASCII characters to express the interrelationships between programs.
- g: Display all processes in the current terminal, including those of group leaders.
- j: Display process status in job control format.
- l: Display process status in detailed format.
- n: Represent USER and WCHAN fields numerically.
- p<process identifier>: Specify the process identifier and list the status of that process.
- r: List only processes currently running in the terminal.
- s: Display process status in signal format.
- S: List processes including information about interrupted child processes.
- t<terminal number>: Specify the terminal number and list the status of processes belonging to that terminal.
- T: Display all processes in the current terminal.
- u: Display process status in a user-centric format.
- U<username>: List the status of processes belonging to the specified user.
- v: Display process status in virtual memory format.
- w: Display process status in wide format.
- x: Display all processes without distinguishing terminals.
- X: Display process status in the old Linux i386 login format.
Example
Display information for a specific user
# gitps hnlinux