Linked Questions

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 ...
John Strood's user avatar
  • 2,019
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 ...
WillD's user avatar
  • 6,802
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 ...
Mehran Goudarzi's user avatar
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 ...
Tim's user avatar
  • 109
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/....
victorhernandezzero's user avatar
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/...
Jon17's user avatar
  • 73
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 ...
lpr0bst's user avatar
  • 11
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 ...
David Saintloth's user avatar
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 ...
Philip Mutua's user avatar
  • 6,981
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 =...
Ed.'s user avatar
  • 6,252
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 ...
patti_jane's user avatar
  • 4,031
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 ...
yuqli's user avatar
  • 5,399
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 ...
darecoder's user avatar
  • 1,628
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 ...
Adam Rosenfield's user avatar
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 ...
npross's user avatar
  • 1,918

15 30 50 per page
1
2 3 4 5 6