Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please include the commands and codes. Thank you. 1. Assign your name to the variable named myname and use echo to display the value of

Please include the commands and codes. Thank you. image text in transcribed
1. Assign your name to the variable named myname and use echo to display the value of myname when it is unquoted, quoted using double quotation marks, and quoted using single quotation marks. (Refer to "Parameter sub- stitution" on page 302 of Sobell and "Quoting the $" on page 302 of Sobell.) 2. Use the readonly (Sobell, page 305) builtin to make the myname variable you created in the previous step a readonly variable and then assign a new value to it. What happens? 3. What is the value of your HOME (Sobell, page 307) keyword variable? Demonstrate that the tilde ( Sobell, page 307) holds the same value as HOME. List the contents of your home directory using a tilde. 4. The PATH (Sobell, page 308) keyword variable specifies the directories in the order bash should search them when it searches for a script or program you run from the command line. What is the value of your PATH variable? Append the absolute pathname of the bin directory that is a subdirectory of your home directory to the PATH variable. What does this change allow you to do more easily? 5. The PS1 (Sobell, page 309) keyword variable holds the value of your pri- mary shell prompt. Change the value of this variable so that your prompt is simply a $ followed by a SPACE when you are working as yourself and a # followed by a SPACE when you are working with root privileges. 6. The date (Sobell, page 62) utility displays the date and time. Write and exe- cute a shell script that displays the date and time, the name of your home directory, and the value of your PATH variable

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

Compute the derivative of f(x)cos(-4/5x)

Answered: 1 week ago

Question

Discuss the process involved in selection.

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago