- The term shell prompt is often used as a synonym for command line interface or terminal.
- This article, however, is about the prompt itself, which is part of the CLI.
In this example, tweedleburg is your computer's hostName.
The shell prompt is highly customizable, and is often set by .profile or equivalent files.
In shells based upon /bin/sh, the shell prompt traditionally ends with $ for ordinary users and # for root. It is set by means of the PS1 variable. A minimalist example:
For detailed examples and syntax, see the articles for various implementations:
For csh and related shells, the prompt is traditionally % for non-root users.
set prompt="$user% "