Customizing the Bash Shell Flashcards
1
Q
env
A
Displays all environment variables
2
Q
$USER
A
- Current user’s username.
- “whoami” displays this
3
Q
$SHELL
A
Shell the user is working as
4
Q
$TERM
A
Current terminal
5
Q
$PS1
A
Default bash prompt
6
Q
\h
A
hostname
7
Q
\w
A
current working directory (shows entire path)
8
Q
\W
A
current working directory (only shows the one specific directory name you are in)
9
Q
\u
A
username
10
Q
\@
A
12 hour am/pm date
11
Q
\t
A
24 hour hh:mm:ss
12
Q
\T
A
12 hour hh:mm:ss
13
Q
\j
A
number of jobs running on the shell
14
Q
\d
A
date
15
Q
\H
A
full hostname