Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to list all running processes.
Linux CLI
ps [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-x' only shows processes without controlling terminals.
Using '-l' shows a long format but not all processes.
Using '-u' filters by user, not all processes.
✗ Incorrect
The option '-e' shows all processes running on the system.
2fill in blank
mediumComplete the command to list processes with full details.
Linux CLI
ps [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-e' alone shows all processes but less detail.
Using '-l' shows long format but not full details.
Using '-u' filters by user.
✗ Incorrect
The '-ef' option shows all processes with full-format listing.
3fill in blank
hardFix the error in the command to list processes by a specific user 'alice'.
Linux CLI
ps [1] alice Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-U' filters by user ID, not username.
Using '-p' filters by process ID.
Using '-x' shows processes without controlling terminals.
✗ Incorrect
The '-u' option lists processes for the specified user by name.
4fill in blank
hardFill both blanks to list processes with PID and command name only.
Linux CLI
ps -eo [1],[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'user' or 'time' shows extra columns not asked for.
Mixing up the order of columns.
✗ Incorrect
The '-eo pid,cmd' option lists only the process ID and command name.
5fill in blank
hardFill both blanks to list processes sorted by memory usage in descending order.
Linux CLI
ps aux --sort=[1][2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rss' sorts by resident memory size, not percentage memory usage.
Using '+' sorts ascending, not descending.
Missing the minus sign causes wrong sort order.
✗ Incorrect
The option '--sort=-%mem' sorts processes by memory usage descending.