Linked Questions
90 questions linked to/from How to permanently set $PATH on Linux/Unix
31
votes
2
answers
122k
views
Where is PATH variable set in Ubuntu? [duplicate]
This is a very interesting question that I stumbled upon when I was creating a command-line application tool for Linux. Unfortunately, the answer on SO is so hidden among the myriad answers to other ...
4
votes
1
answer
10k
views
adding the aws executable to your OS's PATH environment variable: needed every time? [duplicate]
I am following the install directions outlined in this article (https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html#awscli-install-linux-path)to install the AWS CLI on a ...
1
vote
2
answers
3k
views
Add to $PATH with Shell Script [duplicate]
I want to add PATH on Linux Ubuntu 18.04 from file path.sh , my file include :
#!/bin/bash
export PATH="$PATH:/root/.local/bin"
chmod+x path.sh , but when i run it ./path.sh Path not add when i ...
1
vote
0
answers
2k
views
How to update PATH to find nvcc for CUDA 8.0? [duplicate]
I have one main PC and one laptop, which I use to connect to the main PC through ssh. I recently installed CUDA 8.0 through the runtime installation on the main PC when sitting in front of it. I ...
0
votes
0
answers
264
views
How can I export permanently the PATH setting when I restart my machine? [duplicate]
I use this command in Linux but it doesn't work when I restart my machine
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/....
0
votes
0
answers
90
views
R Statistics version 3.3 installed but older version 3.0 runs...? [duplicate]
I installed version 3.3 via yum but I can only execute or even find 3.0. When I check the path the only R-3.3.1 is in /usr/share/doc/R-3.3.1 and /var/lib/yum/yumdb/R. version 3.0 exists in /usr/...
1
vote
0
answers
71
views
Setting up Python (via Homebrew) on M1 Mac #pip #pipenv [duplicate]
I just tried to setup python by myself on my new M1 Mac. Last time I did it with anaconda but now I wanted to try it the manual way.
So I installed Homebrew and installed Python3 via Homebrew (that ...
375
votes
28
answers
829k
views
How do I SET the GOPATH environment variable on Ubuntu? What file must I edit?
I am trying to do a go get:
go get github.com/go-sql-driver/mysql
and it fails with the following error:
package github.com/go-sql-driver/mysql: cannot download, $GOPATH not set. For more details ...
226
votes
31
answers
275k
views
Flutter plugin not installed error; When running 'flutter doctor'
I am configuring the Flutter SDK on my Linux Ubuntu 16.04 (Xenial Xerus) system. Why am I getting the following error when I run the flutter doctor?
I have specified both PATHS for flutter and dart in ...
241
votes
24
answers
521k
views
Error: Cannot find module 'webpack'
I'm just getting started with webpack and am having difficulty getting the multiple-entry-points sample to build. The webpack.config.js file in the example includes the line
var CommonsChunkPlugin =...
299
votes
15
answers
711k
views
Setting PATH environment variable in macOS permanently
I have read several answers on how to set environment variables on macOS permanently.
First, I tried this, How to permanently set $PATH on Linux/Unix but I had an error message saying no such file and ...
357
votes
8
answers
350k
views
Different CUDA versions shown by nvcc and NVIDIA-smi
I am very confused by the different CUDA versions shown by running which nvcc and nvidia-smi. I have both cuda9.2 and cuda10 installed on my ubuntu 16.04. Now I set the PATH to point to cuda9.2. So ...
95
votes
8
answers
219k
views
Shell script to open a URL
How do I write a simple shell script (say script.sh), so that I can pass a URL as an argument while executing?
I want a browser to start with the page opened on that URL. I want to write the command ...
129
votes
7
answers
590k
views
What's the difference between .bashrc, .bash_profile, and .environment?
I've used a number of different *nix-based systems of the years, and it seems like every flavor of Bash I use has a different algorithm for deciding which startup scripts to run. For the purposes of ...
80
votes
5
answers
111k
views
Running Jupyter with multiple Python and IPython paths
I'd like to work with Jupyter notebooks, but have had difficulty doing basic imports (such as import matplotlib). I think this was because I have several user-managed python installations. For ...