Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

_____ The C Shell executes this script file locate in your home directory when y

ID: 3695504 • Letter: #

Question

_____ The C Shell executes this script file locate in your home directory when you

exit your login session.

            a. .login             b. logout          c. .logout          d. exit    

_____The UNIX command in the C Shell that declares and manipulates the values of

environmental / global variables.

            a. @                 b. setenv           c. unset            d. printenv         e. set

_____The UNIX command in the C Shell that declares and manipulates the values of local variables

and assumes that a variable is a nonnumeric string variable.

            a. setenv           b. @               c. set                            d. unset             e. alias

_____The UNIX command that will read and execute commands from a C Shell script as

part of the current process.

a. csh               b. read               c. source           d. ~     e. exec

_____The UNIX command to clear the terminal display.

a. echo               b. clear              c. clr                 d. display

_____The UNIX command that will display the name of the system you are using.

a. /etc/hosts        b. rlogin           c. ping               d. hostname

Explanation / Answer

1) The C Shell executes this script file locate in your home directory when you exit your login session a. .login

Explanation: If you exit your login shell, then the file locate '.login' in the same location of your home directory.

2) The UNIX command in the C Shell that declares and manipulates the values of environmental / global variables b. setenv

Explanation: The setenv command is used to set the values of environmental / global variables

3) The UNIX command in the C Shell that declares and manipulates the values of local variables

and assumes that a variable is a nonnumeric string variable c. set

4) The UNIX command that will read and execute commands from a C Shell script as

part of the current process a. csh   

5) The UNIX command to clear the terminal display: b. clear

Explanation: Using Ctrl+L (or) clear commabd in UNIX for clear the completely clear the terminal.

6) The UNIX command that will display the name of the system you are using d. hostname

Explanation: hostname command is used to display the name of the system (system's host name) in UNIX.