Professional Documents
Culture Documents
...output omitted...
5.3. In the right terminal shell, exit top, and then restart it.
Confirm that the new display uses the
saved configuration.
...output omitted...
Hide Solution
6. Copy the process101 script to a new process102 file, and increase the artificial CPU load to one hundred
thousand in the new script.
Start the process102 process in the background.
6.2. Edit the process102 script and increase the addition calculations from fifty thousand to one
hundred thousand.
Enter interactive mode by using i.
Type :wq to save the file and quit.
#!/bin/bash
while true; do
var=1
var=$(($var+1))
done
sleep 1
done
[2] 4023
Hide Solution