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 ?



1 Answer 1


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

ps axo pid,comm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.