Which of the following characters in a shell prompt indicates the shell is running with root privileges?
Which of the following characters in a shell prompt indicates the shell is running with root privileges?
In a shell prompt, the '#' character specifically indicates that the shell is running with root privileges or administrative access. This symbol differentiates from the '$' character, which typically represents a regular user without elevated permissions. The root user has the highest level of permissions and can execute any command, which is why this distinction is crucial in command-line environments.
B is correct. You can try it your self: open terminal (for Debian-based distributives) and you will see $ the end of the line (regular user), then write sudo -i (it will switch you to root user), hit Enter, input your password and notice that $ changed to #, what means that you're operating as root user now
This is correct.
This is correct. B
B. # In a shell prompt, the "#" symbol indicates that the shell is running with root privileges. This is often referred to as the "root prompt" or "superuser prompt," and it signifies that the user has administrative privileges and can execute commands with higher system access.
Regular User: $ Root User: #
B. # is correct
B is correct
Hashtag indicates root (B. #)