" and "#" - is it a command line interface in Linux? I am starting to use Linux and almost finished with a Linu...">

What's the difference between ">" and "#" - is it a command line interface in Linux?

I am starting to use Linux and almost finished with a Linux base. I've always wondered what is the difference between ">" and "#" in cli.

abc@localhost>

      

and

xyz@localhost#

      

+3


source to share


2 answers


#

usually defines a superuser shell (with root access), whereas %

or $

are used for unprivileged shells run by non-root users.

>

is usually an invitation to continue incomplete commands.



This is all by convention and can be configured using different mechanisms, depending on the shell.

+2


source


For a user with root privileges, there is nothing else other than some shells #.



0


source







All Articles