shell prompt
The short text, often ending in a dollar sign, that the shell prints to show it is ready for your next command.
In more detail
The PS1 variable controls what it shows, such as your user name, host and current directory. A prompt ending in # usually means you are root, so commands have full power. In this course a leading dollar sign in examples stands for the prompt and is not something you type.
Related terms
- PS4 — The bash variable that sets the prefix printed before each line of set -x trace output, a plus sign and a space by default.
- interactive shell — A shell reading commands from you at a terminal, as opposed to a non-interactive shell running a script.
- root user — The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.
Taught in
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Which Shell Am I In, And Getting Bash Five — Bash Scripting & Command Line Automation
- Making, Copying, Moving And Removing — Bash Scripting & Command Line Automation
- Help, History, Completion And Aliases — Bash Scripting & Command Line Automation
- Shell Variables, The Environment And export — Bash Scripting & Command Line Automation
- Shebangs, Permissions And Three Ways To Run — Bash Scripting & Command Line Automation
- Script Input And Output: read, Heredocs, printf — Bash Scripting & Command Line Automation
- Arguments: Dollar One, Dollar At, shift — Bash Scripting & Command Line Automation
- Debugging: set -x, bash -n And Reading The Error — Bash Scripting & Command Line Automation
- Processes, Jobs And Signals — Bash Scripting & Command Line Automation