Computers and Technology

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. 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?
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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:30, gabriieldelacruz16
What “old fashioned” features of checking accounts is p2p replacing
Answers: 3
image
Computers and Technology, 22.06.2019 04:30, justbepunky
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
image
Computers and Technology, 22.06.2019 11:00, ed72018373
Which law requires employers to provide safe working environments for their employees? a. civil rights act b. fair labor standards act c. occupational safety and health act d. wagner act
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, yayamcneal05
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
Do you know the correct answer?
1. Assign your name to the variable named myname and use echo to display the value of myname when it...

Questions in other subjects:

Konu
Mathematics, 09.02.2021 04:20