CompTIA
XK0-004 · Question #52
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space. Which of the fo
The correct answer is C. 1. CTRL-Z. 1. CTRL-Z When you press Ctrl+Z, the “long-running-script” will be stop or suspended. 2. bg will send the long-running-script to the background so you can use the terminal. 3. watch df /var will show used and available disk space. It displays its output on the terminal window tha
Scripting, Containers and Automation
Question
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space. Which of the following is the correct sequence given only a terminal is available?
Options
- A
- CTRL-C
- B
- CTRL-C
- C
- CTRL-Z
- D
- CTRL-Z
How the community answered
(35 responses)- A17% (6)
- B3% (1)
- C74% (26)
- D6% (2)
Explanation
- CTRL-Z When you press Ctrl+Z, the “long-running-script” will be stop or suspended. 2. bg will send the long-running-script to the background so you can use the terminal. 3. watch df /var will show used and available disk space. It displays its output on the terminal window that is temporarily cleared of all other content (i.e., prompts, commands and results of commands). This makes it easy to observe the changing output of a command over time. 4. CTRL-C will terminated the watch df /var command. 5. fg will bring back to foreground the long-running-script 6. CTRL-C will terminate the long-running-script
Topics
#job control#CTRL-Z#background processes#process suspension
Community Discussion
No community discussion yet for this question.