How to list all the PIDs and names of all the runing processes

10,879

You can use the o argument instead of u to specify what you want to see:

ps axo pid,comm
Share:
10,879

Related videos on Youtube

Akari
Author by

Akari

I'm a student :)))))

Updated on September 18, 2022

Comments

  • Akari
    Akari over 1 year

    I know that there is this command :

    ps aux 
    

    to get all info about the running processes .. but I need only the names and ids for these processes , is there any command can list the processes ids or names only ?

    Thanks