On Fri, 16 Oct 2009 12:14:29 +0400, Arkady Tokaev <tok...@hotmail.com> wrote:
> 
> Fogot to ask. When I login as a root I see invitation
> sign "%", not "#". What it means?

The prompt character shows if you are logged in as root or not.
Most shells use $ or % for non-root, and # for root.

Which shell are you using?

        % echo $SHELL

If you're using the C shell, make sure there's no overriding
setting in your /root/.cshrc that as something like

        set prompt = "%"

in it - this would override the default # sign. The most
convenient form is to use those two lines in /etc/csh.cshrc
in order to make them available globally:

        set promptchars = "%#"
        set prompt = "%...@%m:%~%# "

The first line contains the prompting character for non-root
users first, for root next.

The second line forms a comfortable C shell prompt, containing
the user and the hostname, the current working directory and
the prompt character (automatically depending on root or non-root).
It looks like this:

        u...@host:/the/current/path% _

or

        r...@mysystem:~# _

The user's home directory is shown as ~ so that the directory
element won't be too long.

Keep in mind that if /root/.cshrc exists and contains different
settings, it will override the global defaults.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to