Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

********Help, using UNIX (putty) not understanding please example each question Q2. Hint: Commands to study to answer this question: predefined shell variables, and .profile script

********Help, using UNIX (putty) not understanding please example each question

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_2

Step: 3

blur-text-image_3

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions