adplus-dvertising
frame-decoration

Question

Which one of the following command will change our primary prompt from $ to C> ?

a.

PS1=”C> “

b.

PS2=”C>”

c.

PS1=”>C”

d.

PS2=”<C”

Posted under UNIX

Answer: (a).PS1=”C> “

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which one of the following command will change our primary prompt from $ to C> ?

Similar Questions

Discover Related MCQs

Q. Which environment variable is used to display our username?

Q. Which one of the following is not an environment variable?

Q. Which escape sequence is used with PS1 to show the hostname of our computer?

Q. Which of the following shells support the use of aliases?

Q. We can display an alias definition by using an alias with the name.

Q. Which command is used in bash and Korn shells to display the previously used commands?

Q. To display the last five used commands, which one of the following commands is used (in bash shell)?

Q. Which of the following symbols are used for accessing previous commands by event numbers?

Q. We can use relative addressing while executing previous commands.

Q. We can also execute previous commands by context.

Q. Which symbol is used as a shorthand for using the last argument to the previous command?

Q. To reverse any setting updated by set command we can use ____ symbol.

Q. The ____ acts as a shorthand representation of the home directory.

Q. Every shell uses at least one startup script in the user’s home directory, which is executed when the user logs in.

Q. Which file is executed every time a second shell is called up?

Q. Which of the following are history variables?

Q. Which one of the following command will search history list for previous command having the last occurrence of string cvf?

Q. Which of the following is not a major Unix shell?

Q. Which was the first Unix shell?

Q. The purpose of the PATH variable is to