printf '\nPATH=$PATH:"path-to-add"\nexport PATH\n' >> ~/.bashrc. – Microsoft Linux TM · 1. If there are already some paths added, e.g. PATH=$PATH:$HOME/. · 2. Do ... ... <看更多>
Search
Search
printf '\nPATH=$PATH:"path-to-add"\nexport PATH\n' >> ~/.bashrc. – Microsoft Linux TM · 1. If there are already some paths added, e.g. PATH=$PATH:$HOME/. · 2. Do ... ... <看更多>
Related · To set the path for a particular user: You may need to make the entry in file .bash_profile in the home directory for the user. · To set ... ... <看更多>
Linux · Open the .bashrc file in your home directory (for example, /home/your-user-name/.bashrc ) in a text editor. · Add export PATH="your-dir:$PATH" to the last ... ... <看更多>