Answered step by step
Verified Expert Solution
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
- 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? __________________________________________________________
- Run the top command and note the two processes using the greatest amount of your resources. What were they? _______________________ and _____________________
- Use the kill command to kill the process that uses the most resources.
- Use the renice command to reduce the priority of a running process to +19.
- 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.
- Once the file in step 5 is created, use the history -c command to clear your command history.
Exercise 6-2
- View all of your environmental variables with the more command.
- Use the echo command to view the HOSTNAME variable.
- Use the echo command to view the HISTSIZE variable.
- Change the value of HISTSIZE to 1500.
- Use the echo command to view the new HISTSIZE variable value.
- Export HISTSIZE so that its available in all environments.
- Create a variable named MYNEWVARIABLE and put your name in it.
- Use echo to view the contents of MYNEWVARIABLE.
- Export MYNEWVARIABLE so that its available in all environments.
- Use the echo command to view the contents of the PATH variable.
- Add your home directory (/root) to the PATH variable so that any binaries in your home directory can be used in any directory.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started