Adding Arc Path to the Linux User's Environment
Adding Arc Path to the Linux User's Environment
To run Arc simply by typing arc from any directory — without specifying the full file path — you need to add the Arc binary location to the user's PATH environment variable.
Steps
1. Open the bash_profile File
Open the ~/.bash_profile file in your preferred text editor:
vim ~/.bash_profile2. Add the Arc Path
Add the following lines to the file, replacing the path with the actual location of your Arc binary. In this example, Arc is installed at $HOME/utilities/arc:
ARCPATH=$HOME/utilities/arc
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ARCPATHNote: The
ARCPATHvariable points to the directory containing the Arc binary, not the binary itself.
3. Reload the Environment
Apply the changes without restarting your session:
source ~/.bash_profileRunning Arc
After updating the PATH, you can start Arc from any directory:
arcTo run Arc in the background (so the terminal remains usable):
arc &Verify
Confirm Arc is accessible on the expected port:
https://servername:7070