Challenge - 5 Problems
Process Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this command?
You run the command
ps -e | grep ssh. What does this command do?Linux CLI
ps -e | grep ssh
Attempts:
2 left
💡 Hint
Think about what 'ps -e' and 'grep ssh' do separately and then combined.
✗ Incorrect
The command 'ps -e' lists all running processes. Piping it to 'grep ssh' filters the list to only show lines containing 'ssh'.
💻 Command Output
intermediate1:30remaining
What does this command output?
What is the output of
ps -u root?Linux CLI
ps -u root
Attempts:
2 left
💡 Hint
The '-u' option filters processes by user.
✗ Incorrect
The command lists all processes that belong to the user 'root'.
📝 Syntax
advanced2:00remaining
Which command correctly lists all processes with full command line?
You want to see all running processes with their full command lines. Which command is correct?
Attempts:
2 left
💡 Hint
Look for options that show all users and full command lines.
✗ Incorrect
The 'ps auxww' command lists all processes with detailed info and full command lines. 'ps -ef' shows all processes but may truncate commands. 'ps -e -o cmd' shows commands but not full details. 'ps -u all' is invalid.
🔧 Debug
advanced1:30remaining
Why does this command fail?
You run
ps -u without specifying a user and get an error. Why?Linux CLI
ps -u
Attempts:
2 left
💡 Hint
Check the man page for the '-u' option.
✗ Incorrect
The '-u' option requires a username to filter processes. Without it, ps shows an error.
🚀 Application
expert2:30remaining
How many processes are running under the current user?
Write a command that counts how many processes are running under your current user and outputs only the number.
Attempts:
2 left
💡 Hint
Remember the header line in ps output and how to exclude it.
✗ Incorrect
Option C correctly lists processes for current user, skips the header line with 'tail -n +2', then counts lines. Option C counts header too. Option C uses '-U' which is similar but may differ by system. Option C counts all lines containing username, including grep itself.