Kolam Ayer MakersLinux Foundations

ps

Use

ps -u "$USER" -o pid,comm,args

What It Does

ps prints a snapshot of running processes.

Practice

Use -u "$USER" to show processes owned by your account. The output columns are process id, command name, and arguments.

Watch Out

ps is a snapshot. It does not keep updating like htop.

Avoid ps aux | grep "$USER" as ownership proof. It searches text in the whole line and can match usernames, paths, or arguments that are not process owners.

Docs Pointers