SIMULATION -
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
SIMULATION -
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
The correct command to display a list of all background tasks running in the current shell is 'jobs'. This command specifically serves the purpose of showing background tasks in shells such as bash, csh, tcsh, and ksh. Unlike the 'ps' command, which provides a snapshot of all running processes, the 'jobs' command is tailored to display information about tasks managed by the current shell.
I think that the ps command would also be correct.
Jobs Command : Jobs command is used to list the jobs that you are running in the background and in the foreground. If the prompt is returned with no information no jobs are present. All shells are not capable of running this command. This command is only available in the csh, bash, tcsh, and ksh shells