There are several default environment variables that are automatically set in the Bash shell. Here are some common default Bash shell variables:
HOME: This variable stores the path to the current user's home directory.
USER: The username of the current user.
SHELL: The path to the current user's default shell.
PWD: The present working directory (the directory you are currently in).
PATH: A colon-separated list of directories where the shell looks for executable files.
PS1: The primary prompt string that defines the appearance of the command prompt.
PS2: The secondary prompt string used when an incomplete command needs continuation.
IFS: Internal Field Separator. It defines the delimiter characters used for word splitting in commands.
HOSTNAME: The hostname of the machine.
OSTYPE: The operating system type.
OLDPWD: The previous working directory before the last cd command.
Auf dieser Seite können Sie das Online-Video Shell variables: Bash shell default variables | Environment and Shell Variables | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Tune Yourself 03 September 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!