Skip to content

Modify PATH

The PATH is the path used to search for executables in Bash.

Usage

pathConfigure [ --help ] [ --first ] [ --last ] [ path ]

Modify the PATH environment variable to add a path.

Arguments

  • --help - Flag. Optional. Display this help.
  • --first - Flag. Optional. Place any paths after this flag first in the list
  • --last - Flag. Optional. Place any paths after this flag last in the list. Default.
  • path - the path to be added to the PATH environment

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Usage

pathRemove [ --help ] [ path ]

Remove a path from the PATH environment variable

Arguments

  • --help - Flag. Optional. Display this help.
  • path - Requires. String. The path to be removed from the PATH environment.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Usage

pathCleanDuplicates [ --help ]

Cleans the path and removes non-directory entries and duplicates Maintains ordering.

Arguments

  • --help - Flag. Optional. Display this help.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Environment

  • PATH - DirectoryList. A colon : separated list of paths to search for executables in bash. See pathConfigure

Usage

pathShow [ --help ] [ binary ]

Show the path and where binaries are found

Arguments

  • --help - Flag. Optional. Display this help.
  • binary - Executable. Optional. Display where this executable appears in the path.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error