A systems administrator is running a script in the foreground that will take a long time to complete. The administrator needs to check the status of another service but does not want to terminate the script. Which of the following keyboard shortcuts should be used to suspend the script's execution?
The Ctrl+Z keyboard shortcut sends the SIGTSTP (Terminal Stop) signal, which suspends the current foreground process. This allows the administrator to regain control of the shell. The suspended process can be resumed later in the foreground with fg or in the background with bg. Ctrl+C sends the SIGINT (Interrupt) signal, which typically terminates a process. The bg command is used to resume an already suspended process in the background. kill -9 <PID> sends the SIGKILL signal, which forcibly and non-gracefully terminates a process.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the `SIGSTOP` signal do?
Open an interactive chat with Bash
What is the difference between suspending a process and killing it?