0
0
Linux CLIscripting~10 mins

ps (list processes) in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list all running processes.

Linux CLI
ps [1]
Drag options to blanks, or click blank then click option'
A-l
B-x
C-e
D-u
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.
2fill in blank
medium

Complete the command to list processes with full details.

Linux CLI
ps [1]
Drag options to blanks, or click blank then click option'
A-e
B-ef
C-l
D-u
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.
3fill in blank
hard

Fix 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'
A-u
B-U
C-p
D-x
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.
4fill in blank
hard

Fill 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'
Apid
Bcmd
Cuser
Dtime
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'user' or 'time' shows extra columns not asked for.
Mixing up the order of columns.
5fill in blank
hard

Fill 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'
A%mem
Brss
C-
D+
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.