6 Appendix 3: Configuring the path Variable on a Linux® Machine

To include the SAM-BA ® directory in the path variable, you must edit the .bashrc file.

Follow these steps:

  1. Enter the following command:
    $ vi ~/.bashrc
  2. At the end of the file, add:
    $ export PATH=$PATH:/home/administrator/Downloads/sam-ba_v3.9.2
  3. Save the file, then source .bashrc to apply the changes permanently to all future terminal sessions:
    $ source ~/.bashrc
  4. Close the current terminal, open a new one and verify that SAM-BA is recognized by the system:
    $ sam-ba -v
  5. If the installation was successful, the terminal displays an output such as:
    SAM-BA Command Line Interface Tool v3.9.2 (linux - x86_64-little_endian-lp64)
    Copyright 2025 Microchip Technology
Note: The above method adds SAM-BA to the path variable permanently. Editing ~/.bashrc makes SAM-BA available in every new terminal session. If SAM-BA is required for the current session only, run the export command directly in the terminal without editing ~/.bashrc. The path entry will be lost once the terminal is closed.