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

In UNIX determine if True or False _____ !! Execute the previous event in the hi

ID: 3695496 • Letter: I

Question

In UNIX determine if True or False

_____ !!

Execute the previous event in the history list.

_____ !12

Execute event number one and two in the history list.

_____ unalias

Display all of the declared aliases.

_____ echo $?prompt

Determine if the variable used to define the C shell prompt is declared.

_____ if ( -e /etc/passwd ) then

               endif

Status the /etc/passwd file. Determine if the file is an ordinary file.

_____ unsetenv $HOME

Removes the environmental variable that contains the pathname of the home directory for a user.

_____ cd ~

Change directory to the pathname of your home directory.

Explanation / Answer

1) True
2) False
3) False
4) True
5) False
6) True
7) True

1) You can execute the previous event in the history list in the following ways.
   a) !! + Enter
   b) !-1 + Enter
   c) Ctrl+P + Enter

2) you can execute event number one and two in the history list.
   a) !-1 ; !-2

3) unalias is used to delete alias

4) It is used to determine if the variable used to define the C shell prompt is declared.

5) -e is used to check if the file exist
-f is used to check if the file is ordinary.

6) unsetenv removes the environmental variable that contains the pathname of the home directory for a user

7) cd ~ is used to Change directory to the pathname of your home directory.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote