Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 6 Process Management & Environmental Variables Complete the following exercises, making sure to follow the instructions carefully. Dont forget to put your name in

Lab 6 Process Management & Environmental Variables

Complete the following exercises, making sure to follow the instructions carefully. Dont forget to put your name in the top right-hand corner of this document and rename the file to Lab6-Lastname, using your last name instead of lastname, before submitting via Blackboard.

Exercise 6-1

  1. Run the ps command with the aux options on your system and note which process is first and which is last. Which was first? ________________________________________ Which was last? __________________________________________________________
  2. Run the top command and note the two processes using the greatest amount of your resources. What were they? _______________________ and _____________________
  3. Use the kill command to kill the process that uses the most resources.
  4. Use the renice command to reduce the priority of a running process to +19.
  5. Issue the command history | cat >> lastname6-1, using your last name instead of lastname. Make sure to upload this file when submitting this assignment on BlackBoard.
  6. Once the file in step 5 is created, use the history -c command to clear your command history.

Exercise 6-2

  1. View all of your environmental variables with the more command.
  2. Use the echo command to view the HOSTNAME variable.
  3. Use the echo command to view the HISTSIZE variable.
  4. Change the value of HISTSIZE to 1500.
  5. Use the echo command to view the new HISTSIZE variable value.
  6. Export HISTSIZE so that its available in all environments.
  7. Create a variable named MYNEWVARIABLE and put your name in it.
  8. Use echo to view the contents of MYNEWVARIABLE.
  9. Export MYNEWVARIABLE so that its available in all environments.
  10. Use the echo command to view the contents of the PATH variable.
  11. Add your home directory (/root) to the PATH variable so that any binaries in your home directory can be used in any directory.
  12. Issue the command history | cat >> lastname6-2, using your last name instead of lastname. Make sure to upload this file when submitting this assignment on BlackBoard.

Exercise 6-3

Explain what each of these options for the top command does and provide an example

Option

Description

Example

-d

-n

-p

-u

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 23rd International Conference Dexa 2012 Vienna Austria September 2012 Proceedings Part 1 Lncs 7446

Authors: Stephen W. Liddle ,Klaus-Dieter Schewe ,A Min Tjoa ,Xiaofang Zhou

2012th Edition

3642325998, 978-3642325991

More Books

Students also viewed these Databases questions

Question

Methods of Delivery Guidelines for

Answered: 1 week ago