Home PS Command In Linux
Post
Cancel

PS Command In Linux

ps stands for process status. This command is used to display all the running processes in the linux system.

  • To display all the running processes in the current shell

    Syntax: ps [OPTIONS] Information about the information that is displayed upon using ps.

    • PID: Unique Proces ID
    • TTY: Terminal Type of user logged in to
    • TIME: amount of CPU in min and sec that process has been running
    • CMD: name of the command that launched the process
  • To see all the running processes
    1
    2
    3
    
      Syntax: ps -e
          OR
      Syntax: ps -A
    
  • To see all the runnnig processes in full format
    1
    
          Syntax: ps -ef
    
  • To see the process by a user
    1
    
          Syntax: ps -u <username>
    
  • To see the process by a group
    1
    
          Syntax: ps -G <groupname>
    
  • To see the process tree
    1
    
          Syntax: ps -ejH
    
This post is licensed under CC BY 4.0 by the author.