Shell variables: Bash shell default variables | Environment and Shell Variables |

Pubblicato il: 03 settembre 2023
sul canale di: Tune Yourself
7
0

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.


In questa pagina del sito puoi guardare il video online Shell variables: Bash shell default variables | Environment and Shell Variables | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Tune Yourself 03 settembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 7 volte e gli è piaciuto 0 spettatori. Buona visione!