The interactive shell and shell variables

  • A shell provides the command prompt and interprets commands.

  • A shell variable holds a value that is accessible to shell programs.

  • PATH is a shell variable that contains a listing of directories that hold executable programs.

  • Commands must be bash built-ins, found in the PATH, or explicitly defined in order to succeed.

  • When shell variables are exported, they become part of the environment.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.