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?✗ Incorrect
ps aux lists all processes for all users with detailed information.What does
ps -u username do?✗ Incorrect
The
-u option filters processes by the specified username.How do you find a process named 'firefox' using
ps?✗ Incorrect
Using
ps aux | grep firefox filters the process list to show only lines containing 'firefox'.What information does
ps -ef NOT show?✗ Incorrect
ps -ef does not show the user's home directory.Which command lists processes running on your current terminal?
✗ Incorrect
Running
ps without options lists processes running in your current terminal session.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.