Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a lab procedure please answer 1-7 thank you 12:50 PM Sat Oct 13 14% Lab1.docx EMT2390L (LINUX) LAB 1 1. Log on and

This is a lab procedure please answer 1-7 thank you image text in transcribed
12:50 PM Sat Oct 13 14% Lab1.docx EMT2390L (LINUX) LAB 1 1. Log on and open a terminal window. and confirm that you're running bash with the ps command. 2. Run the command that gives you a list of all the environment variables that are currently set 3. Using a pipe to the wc command, find out how many environment variables are currently set 4. Create a new environment variable called MYVAR and set its value to "myvalue". Use the command export MYVAR to allow MYVAR to be used by sub-programs of the shell. Verify that this step worked by printing out the value of MYVAR on the terminal. Also repeat step 3 to ensure that the number of variables increased by 1 Try changing your command prompt to: o "prompt o nothing o your username o the output of the date command followed by "S " (tricky) 6. Write shell program called hello to print "hello, world" on the screen. Try running this program from your home directory by typing hello at the prompt. This won't work; you need to use the absolute path to run the program try this now. Now change the environment variable called PATH so that you can run hello without an absolute path from anywhere. 7. Print the value of the environment variable called HOSTNAME. If it's not currently set, set its value to be the name of the machine you're working on (without using that exact name in the command you type). Verify that HOSTNAME was set correctly

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Define and measure service productivity.

Answered: 1 week ago