linux добави в пътя
export PATH=$PATH:/place/with/the/file
setx /M PATH "%PATH%;<your-new-path>"
как да добавите път в ubuntu
# Edit .bashrc, or .zshrc in your home directory and add the following line:
export PATH="/path/to/dir:$PATH"
$ source ~/.bashrc
source ~/.zshrc
как да добавя директория в пътя linux
# For this Purpose you have to edit ~/.bashrc file.
# So in terminal:
nano ~/.bashrc
# Now add this command to the file and instead of ADDRESS,
# write your desired address
export PATH=$PATH:ADDRESS
# Like:
export PATH=$PATH:/usr/local/hadoop
FOR MAC:
1º - Open Finder
2º - Choose Go > Go to folder
3º - Go to ~/Library/
4º - Look for hidden files: Cmd + Shift + . (dot)
5º - Depending on the shell you use, the file can be .bash_profile, or .bashrc, or .zshrc, ...
6º - Open that file in the text editor
7º - Add the new path like: export PATH="$PATH:"User/new_path/..."
8º - Test in your command line if it worked: echo $PATH
добави в пътя на ПЪТЯ
FOR MAC:
1º - Open Finder
2º - Choose Go > Go to folder
3º - Go to ~/Library/
4º - Look for hidden files: Cmd + Shift + . (dot)
5º - Depending on the shell you use, the file can be .bash_profile, or .bashrc, or .zshrc, ...
6º - Open that file in the text editor
7º - Add the new path like: export PATH="$PATH:"User/new_path/..."
8º - Test in your command line if it worked: echo $PATH
PATH=$PATH:~/opt/bin
# or
PATH=~/opt/bin:$PATH
добавете пътя до $PATH
PATH=$PATH:~/opt/bin
# or
PATH=~/opt/bin:$PATH
пътят на износ на ubuntu
$ source ~/.bashrc