Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using UNIX please answer the following question please! Question has 12 short steps. Q2. Hint: Commands to study to answer this question: predefined shell variables,

Using UNIX please answer the following question please! Question has 12 short steps.

Q2. Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME.

Do not give just the value of the shell variable as answer to questions given below.

1) Display the value of SHELL 2) SHELL contains the pathname of the shell program you are using. With echo command, answer what is the name of the shell program 3) Display the value of HOME 4) With echo command, answer what the HOME value stand for 5) Display the value of PATH 6) PATH contains the list of directories shell searches for the nonbuilt-in command (that is, the executable program file with name same as the command you typed). The directories in the list are separated by : character. With echo command, answer whether the list contains . (dot or period) and whether the shell searches the current working directory. 7) Display the value of MAIL 8) With echo command, answer where the system stores your emails. Indicate whether it is a directory or file. 9) Display the value of TERM 10) With echo command, answer what is the type of the terminal you are using. Note: The combination of keyboard and monitor is called a terminal. If the value of TERM is xterm, then indicate what xterm stands for. Do not give the answer as xterm. 11) The .profile file is in your login directory. It is a startup shell script file containing shell (UNIX) commands. The system executes the UNIX shell commands in this file each time you login to setup your session environment before shell displays the first shell prompt (which is $ by default). Display the content of .profile file 12) With echo command specify the list of predefined shell variables in the .profile file

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago

Question

When there was controversy, was it clear who had the final say?

Answered: 1 week ago