Complete the code to list all running processes using the ps command.
ps [1]The ps -ef command lists all running processes in full format.
Complete the command to display system resource usage with top in batch mode.
top [1]The -b option runs top in batch mode, suitable for scripts or logging.
Fix the error in the command to kill a process by its PID using kill.
kill [1]The correct syntax to force kill a process is kill -9 pid, where pid is the process ID.
Fill in the blanks to create a dictionary comprehension that maps process IDs to their command names from a list of tuples.
proc_dict = { [1]: [2] for [3], [4] in proc_list }The dictionary comprehension maps each pid to its cmd from the list of process tuples.
Fill in the blanks to filter processes with CPU usage greater than 10% and create a dictionary of their names and CPU usage.
high_cpu = { [1]: [2] for [3], [4] in processes if [2] [5] 10 }The comprehension creates a dictionary with process names as keys and CPU usage as values, filtering those with usage greater than 10%.