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
linux process management Question 5 You can monitor the real-time activity of processes with the top...
linux process management Question 5 You can monitor the real-time activity of processes with the top command. Question 5 options: True False Question 6 You can terminate a process with job ID 3 with the stop 3 command. Question 6 options:    True    False
Linux commands in terminal What processes are running? In the previous task ("Command Based") you were...
Linux commands in terminal What processes are running? In the previous task ("Command Based") you were already familiar with the command "ps" which shows some or all of the processes that are running. When you run "ps", you start a new process and you can see the actual process in the output. Later in this task you will use "ps" more. The "top" command also shows an overview of the processes that exist on the system but it the overview...
you have been tasked with developing a Java Swing GUI that displays time, traffic signals and...
you have been tasked with developing a Java Swing GUI that displays time, traffic signals and other information for traffic analysts. The final GUI design is up to you but should include viewing ports/panels to display the following components of the simulation: 1. Current time stamps in 1 second intervals 2. Real-time Traffic light display for three major intersections 3. X, Y positions and speed of up to 3 cars as they traverse each of the 3 intersections Some of...
Chapter 8: Searching, Extracting, and Archiving Data Exercise 8.a: Using grep, find, and regular expressions (Objective...
Chapter 8: Searching, Extracting, and Archiving Data Exercise 8.a: Using grep, find, and regular expressions (Objective 3.2) Linux Distribution: Fedora (non-root user & password needed) Desktop Environment: GNOME 3 1.   If you have not already done so, boot up your computer (or virtual machine) to start the Fedora Linux distribution. 2.   When the machine has booted up, access the tty2 virtual terminal by pressing Ctrl+Alt+F2. 3.   Log on to a regular user’s account by typing in the username at the...
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...
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 But what are reasonable outcomes of the influence of global processes on education?While the question of how global processes influence all aspects of education (and who controls these forces) is multidimensional and not completely testable, there appear to be some theories of globalization as it...
urgent please provide 3 multiple choice questions with correct answers. Since the early days of Google,...
urgent please provide 3 multiple choice questions with correct answers. Since the early days of Google, people throughout the company have ques- tioned the value of managers. That skepticism stems from a highly techno- cratic culture. As one software engineer, Eric Flatt, puts it, “We are a company built by engi- neers for engineers.” And most engineers, not just those at Google, want to spend their time designing and debugging, not communicating with bosses or supervising other workers’ progress. In...
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,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT