Exercise 1:
Start and Stop Multiple Processes
Exercise 2:
Use top command to display real time information about the processes and to control them.
Submission:
A word document with the screenshots as an evidence of what you have observed.
on Linux makes this in the terminal as a command
Exercise 1 :
Start and stop multiple porcesses :
First of all, we have to know that a program's instance is called as processes, that is, if we give any commands to the linux_machine it will result in a process.
To start a process in using linux command, the casual way is to type the name and push return.
Then, we can use ps-ef command to list all the commands that are in the state of running :
For example:
In the above :
Well, now we have all the processes running, we want to stop or kill many among those processes,
therefore we will be using pkill or killall command that can kill a process or processes, we do not have identify the process by their PID, rather we can use a term that is used in any of the running processes.
Suppose we want to kill all of the chrome processes, we can use the following commands :
killall chrome
If we want to kill multiple processes in a selective manner, we can first list them and then can decide a/c to teir PID's if we wanna kill them : For eg :
ps aux | grep chrome
kill -9 pid1 pid5
Exercise 2 :
Top commands to display real time processes and their controls :
Top command is used to display real-time informations, we can know many things like processing, memory or CPU consumption and so on.
# top -n 1 -b > top-output.txt
# top -n 10
Summary : Above explained the two questions, that is in first, how to start and stop or kill multiple preocesses and second, using of top command in real-time and their processes to control them, I have explained both the questions very thoroughly, and yes, if you want the word format just copy the above materials and save it as a word format. I hope now the answers are explained thoroughly.
P.S. Hope you are satisfied with the provided solution, please give a thumbs up, Good Day !
Get Answers For Free
Most questions answered within 1 hours.