0
0
Linux CLIscripting~5 mins

ps (list processes) in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the ps command do in Linux?
The ps command lists the currently running processes on your system. It shows details like process ID, terminal, CPU usage, and command name.
Click to reveal answer
beginner
What does the option ps aux show?
ps aux shows all running processes for all users with detailed information including user, CPU and memory usage, start time, and command.
Click to reveal answer
beginner
How can you use ps to find processes by a specific user?
Use ps -u username to list processes owned by that user only.
Click to reveal answer
beginner
What does the ps -ef command do?
ps -ef lists all processes in full-format listing, showing detailed info like UID, PID, PPID, start time, and command.
Click to reveal answer
beginner
How can you combine ps with grep to find a process?
You can run ps aux | grep process_name to filter and find processes matching the name you want.
Click to reveal answer
Which ps option shows all processes with detailed info?
Aps -u
Bps -l
Cps aux
Dps -t
What does ps -u username do?
AShows processes for all users
BShows processes by terminal
CShows only running system services
DShows processes for the specified user
How do you find a process named 'firefox' using ps?
Aps -u firefox
Bps aux | grep firefox
Cps -ef firefox
Dps firefox
What information does ps -ef NOT show?
AUser's home directory
BParent Process ID (PPID)
CProcess ID (PID)
DStart time of the process
Which command lists processes running on your current terminal?
Aps
Bps aux
Cps -ef
Dps -u
Explain how to list all running processes on a Linux system with detailed information.
Think about showing every process regardless of user.
You got /4 concepts.
    Describe how to find a specific process by name using the command line.
    Combine two commands with a pipe.
    You got /4 concepts.