OPERATING SYSTEMS FOR COMPUTERS
COMMAND LINE INTERFACE
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
#
|
|
$
|
|
>
|
|
&
|
Detailed explanation-1: -The $ symbol is the default for regular users. If you’re logged in as the ‘root’ user, the full prompt changes to [rootlocalhost ]#. The # symbol is the prompt designation for the root account. The general format of the default command prompt is: [usernamehostname cwd]$ or #.
Detailed explanation-2: -The switch user command “su” will ask you for the root password and give you a super user prompt, signified by the # symbol. That # symbol means “DANGER! YOU’RE LOGGED IN AS ROOT!”.
Detailed explanation-3: -A root terminal, such as one you can get by using the sudo su command, will have a pound or hash symbol # at the end of the prompt. You’ll also notice that the colors are disabled in the root terminal, but that can easily be changed in the Bash configuration file.
Detailed explanation-4: -If the last character of your shell prompt is # rather than $, you are operating as the superuser. This means that you have administrative privileges.