Question

Exercise 1: Start and Stop Multiple Processes Exercise 2: Use top command to display real time...

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

Homework Answers

Answer #1

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 :

  • UID is the name of the user
  • PID the ID number of the process
  • PPID is the parent process
  • STIME is the time at which process started
  • TTY is the procesess' terminal for control
  • TIME is the time for the exeution
  • CMD is the name for the command

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.

  1. Show real-time processes :
    • We can simply use top that will display memory,cpu, tasks and will stay in real-time, ie keep updating until you get to press q for quitting.
  2. Sorting through results :
    • We can press SHIFT+O to get sorted results for the fields, we can also press a to sort with PID
  3. We can show for specific_user_processes :
    • For eg, we can use top -u tecmint, that will show process named with that user
  4. We can also highlight the processes that are running :
    • Just press z, and the processes that are running will be colored
  5. We can also the processes' path:
    • Just press c path for the precesses will be shown
  6. There are few more commands for top we can further discuss:
    • We can press k after we have find the porcess with its particular PID
    • We can press SHIFT+P to sort the processes by usage of CPU
    • The exciting command is this below command that outputs and save the results of processes in the given output file.
      # top -n 1 -b > top-output.txt
      
    • We can also exit the top command , when after we have done certain repititions, let's say for now 10, then command is :
      # 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 !

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Practice using EXCEL – Part of your Orientation Assignment to prepare for class on the first...
Practice using EXCEL – Part of your Orientation Assignment to prepare for class on the first day. Step by Step instructions on completing PR1-5B. BEFORE STARTING TO WORK THE PROBLEM YOU NEED TO WRITE ALL BALANCE FORMULAS. To do so do the following in order. Click on Cell D39. In D39 you will write a formula to add rows D37 and D38. To do so do the following: a)    Start in Cell D39 and press = sign b)    Highlight cell...
Item 1 In the case below, the original source material is given along with a sample...
Item 1 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version Major changes within organizations are usually initiated by those who are in power. Such decision-makers sponsor the change and then appoint someone else - perhaps the director of training - to be responsible for implementing and managing change. Whether the appointed change agent is in...
Item 1 In the case below, the original source material is given along with a sample...
Item 1 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version In contrast to the transmittal model illustrated by the classroom lecture-note taking scenario, the constructivist model places students at the center of the process--actively participating in thinking and discussing ideas while making meaning for themselves. And the professor, instead of being the "sage on the...
Restructure, Outsource or Redesign? Choosing a strategic direction and evaluating the effectiveness of HR are only...
Restructure, Outsource or Redesign? Choosing a strategic direction and evaluating the effectiveness of HR are only the first steps in making an organization competitive in the global environment. The next step is figuring out how to improve human resources based on the strategy and issues that may have been raised during the evaluation process. The effectiveness of HRM can be improved in three main ways. First, a company may decide to restructure the HR function to increase its efficiency. Next,...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
In narrative essay format, I want you to address a business/organization case study using multiple concepts...
In narrative essay format, I want you to address a business/organization case study using multiple concepts from class. The case question and case text begin on page 5 of this document. You need to demonstrate their best understanding of management and organizational behavior theory, and the application of those ideas to improve the understanding of various issues. You need to clearly identify at least 3 distinct, substantive issues. For each issue you need to 1), identify evidence from the case...
Question 1 of 15 Which of the following is not a recommended starting point to enter...
Question 1 of 15 Which of the following is not a recommended starting point to enter sales of products/services? A. Quick Create > Invoice B. Register > New transaction C. Quick Create > Sales Receipt D. Customer detail page > New transaction E. Transactions > Sales > New transaction Question 2 of 15 Which of the following statements accurately describes bank rules? A. Bank rules are imported from the Bank's website into the For Review tab in the Banking Center...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne"...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne" and what tactics does Procipius use to describe Justinian in a positive light in the "Nika Riots"? Ive posted both excerpts. "Life of Charlemagne" Charles the Great, (Charlemagne in French) reigned 768-814 as king of the Franks and the most important ruler of the Carolingian Dynasty, conquering lands in what is now Germany, France, Spain, and Italy. On Christmas Day 800 C.E., Pope Leo...
Explain the complete HAZOP procedure as followed in the industry. See summary below. Explain all the...
Explain the complete HAZOP procedure as followed in the industry. See summary below. Explain all the main parts of HAZOP study in details given in the Pdf file including: 1. Overview (including definitions and usage) 2. Hazop methodology (including phases like definition, preparation, examination, documentation and follow-up). Give examples also 3. Risk review 4. Risk communication Guidance: Study the procedure carefully and then write the answers in your own words. Hazard & Operability Analysis (HAZOP) 1   Overview: Hazard and Operability...
QUESTION 1 1. Brianna is trying to increase her chances of being promoted to vice president...
QUESTION 1 1. Brianna is trying to increase her chances of being promoted to vice president by working to build good work relationships with other managers outside her own department. Brianna's behavior should be viewed as dysfunctional politics. functional politics. coercive power. functional influence. 2 points QUESTION 2 1. The Gingerbread Factory has a separate unit that makes their chocolate crunch cookies and another unit that is completely responsible for all operations in producing their ginger snap cookies. The Gingerbread...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT