G'Day,

On Fri, May 04, 2007 at 08:44:53PM -0400, Blake wrote:
> What's our convention in Solaris docs for showing command line entries?  Do
> we use a generic prompt marker, or just list the commands?

Use a prompt marker - it is a useful way to differentiate root/non-root
commands.

There is a convention listed at the start of most docs.sun.com books,

        C shell                                         machine_name%
        C shell for superuser                           machine_name#
        Bourne shell and Korn shell                     $
        Bourne shell and Korn shell for superuser       #

Which makes sense (or made sense in 1990, before bash/zsh ;).

The following is what I use anyway,

        root            #
        non-root        $

and if the example is switching between hosts,

        root            hostname#
        non-root        hostname$

and if the example is moving around different directories,

        root            pathname#
        non-root        pathname$

Brendan

-- 
Brendan
[CA, USA]

Reply via email to