Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercises Use two different commands to display the contents of the HOME variable. (screenshot 1)Assign the variabletthe value of 20. Next, assign the variablesthe value

Exercises

Use two different commands to display the contents of the HOME variable. (screenshot 1)Assign the variabletthe value of 20. Next, assign the variablesthe value of t+30. Finally, display the contents oftandsto verify you have correctly defined these variables.(screenshot2)Display the contents of the PATH variable. Next, use the command to add your current working directory to the PATH variable(screenshot3).Create a variable callediamand assign the results of thewhoamicommand to it. Display the contents of the variable to verify your results.(screenshot4)Change back to your home directory, if you are not in it. Use thesetcommand to set up your working environment to prevent you from overwriting a file(screenshot5).At the command line use aforloop that uses the variablesandwichesand then displays a line at a time the following sandwiches: chicken, ham, hummus, tomato(screenshot6).Display the contents of .bashrc file. Next, use the vi editor to edit that file and put in an alias so that every time you typelistyou see a long file listing of a directory.(screenshot7)What is wrong with the following lines of code? (write answer in screenshotdocument after screenshot7)

While [ $value = 100 ; do

Echo Thats a large number. read value

fi

Use theletcommand to store the value 1024 in the variable ram. Display the contents ofram.(screenshot8)Is there a command that you can use to prevent shell variables from being assigned new values? If so, what is it?(Place answer after screenshot8)

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Please send an extra large dust cover for my photocopier.

Answered: 1 week ago

Question

A 30 year old person should know better.

Answered: 1 week ago