Shell

Per Hedeland per at hedeland.org
Tue Jun 30 11:28:04 UTC 2020


On 2020-06-30 11:43, Steve O'Hara-Smith wrote:
> On Tue, 30 Jun 2020 14:44:34 +0530
> Manish Jain <bourne.identity at hotmail.com> wrote:
>
>> It is often unnoticed that FreeBSD has a mirror of the root user
>> appropriately named toor (whose shell can be anything).
>
> 	Traditionally root ran /bin/csh and toor ran /bin/sh to keep both
> BSD and AT&T trained sysadmins happy, it really doesn't matter what login
> shell root uses at work we use zsh, at home I use bash but you could even
> use mc or vshnu.
>
> 	However the OP was concerned about the prompt (which many people
> have correctly said involves setting PS1) rather than the shell.

Yes, PS1 is what to set for /bin/sh and its relatives (e.g. bash,
zsh), but it has no effect for csh/tcsh - there you need to set
'prompt' (and the "formatting sequences" are also different). And it
seems the OP was primarily interested in root's prompt (i.e. csh by
default).

--Per




More information about the freebsd-questions mailing list