Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-1 votes
2 answers
460 views

Accidentally changed PATH variable and I cant change it back, or use vim etc..help

I know there are many questions like this, but I unfortunately dont know enough about Ubuntu to be able to apply it to my situation. I have all my stuff saved for work on a remote machine, that i ...
Learn4life's user avatar
0 votes
0 answers
679 views

Set LD_LIBRARY_PATH for with symlinks

As per the Ubuntu documentation - the only way to permanently set LD_LIBRARY_PATH is by adding a conf file to /etc/ld.so.conf.d/ If I manually run export LD_LIBRARY_PATH=~/nextcloudapp/squashfs-root/...
Terence Eden's user avatar
  • 1,796
-1 votes
2 answers
853 views

How to remove a directory's path from the enviroment variable PATH permanently?

I just removed the miniconda3's folder from home/username/, now i want to remove its path from my $PATH variable permanently. As you can see below, it's the first one: /home/username/miniconda3/bin:/...
Luan Lima's user avatar
  • 131
-2 votes
3 answers
774 views

Use of hidden file in system path

In 20.04 I used .bashrc to include a hidden folder in my system path: /home/robert/.local/... Since upgrading to 22.04, it appears that the system no longer searches this folder. Has this changed in ...
Pansmanser's user avatar
1 vote
1 answer
3k views

How to run an executable from any directory in terminal by setting path?

The executable file name is julia. This executable is located at /home/siva/juliapro/julia/bin. I have set the path to this directory, but still, if I enter julia in the terminal, it says command ...
user1319128's user avatar
1 vote
1 answer
1k views

A path set in /etc/profile/ doesn't appear on other users' environment

I have the following PATH variable in /etc/profile. The last line should allow me to use the conda command for any user. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and ...
Maxen_ce's user avatar
0 votes
1 answer
616 views

Overwrote $PATH [duplicate]

I am new to linux and I was trying to set up path of JAVA_HOME but I accidentally wrote export PATH=/usr/lib/jvm/java-11-openjdk-amd64 which I think overwrote $PATH. I am quite sure I have messed up ...
Ghazali's user avatar
2 votes
1 answer
2k views

Start intellij from anywhere

I have recently installed Ubuntu and I'm a bit confused. I have downloaded VSCode and I can simply start it from my terminal using code. I downloaded intellij and tried idea and intellij but none of ...
Manas Prakash's user avatar
1 vote
0 answers
2k views

Add intellij to environment variables

I have recently installed Ubuntu on my system. I downloaded Intellij and CLion using Ubuntu Software. In order to open it from terminal I used the command export PATH=$PATH:./clion.sh this command ...
Manas Prakash's user avatar
1 vote
1 answer
2k views

Where do I define LD_LIBRARY_PATH so that Apache can see it?

I'm using Ubuntu 18.04. I have defined this in my /etc/profile file export LD_LIBRARY_PATH=/usr/local/lib/ I'm trying to figure out where I define the above so that Apache can see it. Currently, ...
Dave's user avatar
  • 2,155
0 votes
1 answer
887 views

How to make an environment variable (cern root) permanently?

I am pretty new with Ubuntu as the Windows subsystem. I've been trying to run the ROOT data analysis framework (change its path to make it available permanently) but for some reason is not working as ...
Josselyn Velasquez's user avatar
-1 votes
1 answer
61 views

My System is failed to unlocked

I mistakenly change my variable path of my xubuntu 18.04, i have tried many options found in this platform but is not working for me. Please i need an urgent help Screenshotof my tty4 console
Yahayasm's user avatar
0 votes
0 answers
2k views

How to add to /etc/environment?

I use a mac at work, which has /etc/paths to add paths, with the syntax: /usr/foo /usr/bar Using wsl with ubuntu-18.04-ls, I wanted to add "/home/linuxbrew/.linuxbrew/bin" to etc/environment, ...
user avatar
1 vote
0 answers
157 views

After removing sddm and lubuntu-desktop, my desktop environment is missing some environment variables

After removing sddm and lubuntu-desktop, and using startx to spin up a graphical interface with my window manager of choice (cwm), ~/.local/bin is not on the PATH anymore. I googled around and it ...
Dominykas Mostauskis's user avatar
0 votes
1 answer
441 views

Set path environment variable in Ubuntu [duplicate]

By mistake, I changed the path environment variable in Ubuntu. Now when I turned my pc on, the login screen is coming and after entering my password and pressing enter, the screen goes away for a ...
Dpk Baba's user avatar
0 votes
1 answer
6k views

How to permanently change a PATH variable in Debian [closed]

I'm trying to change the directory that is accessed when I call blender in my terminal. This is currently where it is: ...$ which blender /usr/bin/blender And I'd like to instead use the version ...
Otherness's user avatar
  • 113
1 vote
1 answer
750 views

Can't append to PATH in ~./bashrc using $Home

I just want to add a path in ~/.bashrc as: export PATH="$Home/gg/gamit/bin:$Home/gg/kf/bin:$Home/gg/com:$PATH" But when I am using echo $PATH is showing it as: /gg/gamit/bin:/gg/kf/bin:/gg/com:/...
sandeep gupta's user avatar
0 votes
1 answer
247 views

Run node script with a global variable

I have a node script index.js with a node_modules folder. /script/myTestJscript/index.js /script/myTestJscript/node_modules /script/myTestJscript/package.json I could run the script with the command ...
emna87's user avatar
  • 1
0 votes
1 answer
17k views

My $PATH variable is messed up. How to change it back?

Whenever I try basic commands in the terminal like sudo or ls, I get this error: Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included ...
R. Siva's user avatar
1 vote
1 answer
6k views

How to set the path to the latest Open MPI version?

I'm using Ubuntu 14.04 and the installed Open MPI is 1.6.5; I've installed the Latest Open MPI(4.0.0) following these instructions here and set the installed location by- ./configure --prefix=/$HOME/...
paul-shuvo's user avatar
4 votes
1 answer
32k views

Adding folders to your PATH environment variable

Currently running Ubuntu 18.04 LTS. I'm trying to install Ndless and the SDK that goes with it so I can write programs in C and run them on my calculator. Anyways, I was wondering if somebody could ...
Display name's user avatar
6 votes
3 answers
15k views

Set LD_LIBRARY_PATH correctly

I am using Docker with image of Ubuntu 16.04. I am using this docker to run: Import C++ classes in python with the help of boost.python Import matlab's python package in python with the help Matlab ...
Coderji's user avatar
  • 81
1 vote
1 answer
376 views

Understanding how PATH environment variable works

I have followed many guides and books to understand the PATH variable concept but none of them explains "completely" how this works in Linux. For example if I set a a Path like the following in Bash: ...
Ujjval Rathod's user avatar
1 vote
0 answers
89 views

Ubuntu 16.04: Log in problem when using prime-select intel and adding /usr/lib/nvidia-396 to LD_LIBRARY_PATH

I'm doing some computation with my GPU (GTX 970) so I decided to use my integrated card from my CPU (i7-4790K) to display my 2 screens, hence I used prime-select intel to do so. In doing so it seems ...
JulesD's user avatar
  • 11
5 votes
2 answers
23k views

PATH=$PATH:`pwd` - What happens when this command is executed?

What happens when this command is executed? PATH =$PATH:`pwd` Error: Nothing happens when i execute the command in the terminal.
user avatar
2 votes
1 answer
163 views

How can I install petrify and set it up?

I want to install petrify -- a tool for simulation of Asynchronous Circuits -- so I downloaded the file and in this folder there is an INSTALL file that says: You should define properly define the ...
Milad Sabri's user avatar
4 votes
2 answers
17k views

When I do an export path using terminal, which file does it save to? [duplicate]

For example, when I run export export PATH=$PATH:$GOROOT/bin:$GOPATH/bin or a GOPATH=~/workspace/me/go which file does this get added to?
Kaigo's user avatar
  • 535
0 votes
1 answer
514 views

How to solve the conda virtual env and system env conflict on import cv2?

I have installed opencv 3.4.1 correctly on my system enviroment. But after I create a conda virtual environment using opencv3.2.0, it leads some problems here: Under the conda virtual env, I have to ...
waschbaerYOYO's user avatar
0 votes
0 answers
148 views

Why should I STILL use --with-boost for ./configure when I exported PATH variable for boost directory

I would love to hear your explanations and methods of solutions for the problem that I have been facing for such a long time by now. I am working in a remote cluster where sudo command is not allowed ...
trenta coollime's user avatar
3 votes
1 answer
2k views

Can't cd to newly added Path variable [duplicate]

I added the following line to /etc/environment: ML="$HOME/ml" After I re-logged in for the script to take effect, running printenv ML prints $HOME/ml and running cd $ML prints bash: cd: $HOME/ml: ...
Tran Triet's user avatar
17 votes
1 answer
60k views

How to set LD_LIBRARY_PATH permanently?

I am using Ubuntu 16. I want to use cfmid for my project. When I set LD_LIBRARY_PATH in terminal, I can get output of the cfmid library: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lclab/installed/...
Kaushali de silva's user avatar
0 votes
1 answer
1k views

Setting "$PATH" environment for Unix "which" command

I am trying to run two chemistry programs together that need the PATH environment changed in order to find one another. The manual says: Under the UNIX operating systems, R.E.D. looks for the "...
DWK's user avatar
  • 21
3 votes
1 answer
2k views

Which of these Paths should I use as the value of JAVA_HOME?

I am running Ubuntu 16.04. I have downloaded JDK 7.0 from Oracle website and untar'ed and put it in a folder /opt/JDK/, such that the final install directory is /opt/JDK/jdk1.7.0_80 Then I executed ...
Shy's user avatar
  • 235
2 votes
1 answer
14k views

Get anaconda root directory

l'm looking to get my anaconda root directory. so l run : which anaconda3 l got /root/anaconda3/bin/anaconda Is that my anaconda root directory ?
vincent 's user avatar
3 votes
1 answer
3k views

'/bin' is not included in the PATH variable after installing Java JDK 8.1

I installed Java JDK 8.1. Now I have this issue. mohammed@mohammed-HP-Pavilion-g6-Notebook-PC:~$ ls Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not ...
Mohammed_Alkutrani's user avatar
141 votes
6 answers
354k views

Setting PATH variable in /etc/environment vs .profile

Where is the preferred place to set the PATH envvar? ~/.profile or /etc/environment? What is the case when PATH is set in both places? Is the end result a concatenation of both values set in those ...
pkaramol's user avatar
  • 2,191
1 vote
2 answers
4k views

What does MANPATH, LD_LIBRARY_PATH mean in Linux?

What does MANPATH and LD_LIBRARY_PATH mean in Linux ? What are the uses of these?
Lakshmi Balan's user avatar
4 votes
0 answers
5k views

LIBRARY_PATH,LD_LIBRARY_PATH empty - Ubuntu 16.0.4 LTS

I have been using my machine with no issues, but when I want to add my custom path to default lookup paths for libraries I am not able to because LD_LIBRARY_PATH is not set (empty). So I copy my ...
DevBee's user avatar
  • 145
3 votes
4 answers
37k views

How to reset my $PATH environment variable back to default?

I am a noobie. I tried searching the duplicates for answers, but none worked. I accidentally altered my $PATH variable in my terminal when trying to install ghc. Every time I open a terminal window I ...
A. Bergeron's user avatar
1 vote
1 answer
1k views

PATH variable in different terminal windows

I note that if I have several terminal windows opened and in one of them I set path variable through bashrc: export APP_PATH="path_to_app" export PATH="$APP_PATH:$PATH" Then call: source ~/....
Long Smith's user avatar
0 votes
1 answer
1k views

How to set path for the Tomcat7 user

I'm trying to install an extension for GeoServer. The instructions say: Create a GDAL_DATA environment variable to the folder where you have extracted this file. Make also sure that this directory ...
Steve Bennett's user avatar
2 votes
1 answer
564 views

What files are run when I log into the desktop?

I don't know how to phrase this to be clear. I'm not talking about terminals or shells, I know what the difference between login and non-login shells are. What I want to know is when I start up my ...
Captain Man's user avatar
2 votes
1 answer
2k views

Vim-LatexSuite: /bin/bash: latex command not found

TeXLive 2015: I installed TeXLive 2015 following the simplest instruction sudo ./install-tl-ubuntu (without any options) of scottkosty/install-tl-ubuntu@GitHub. Vim-Latex-Suite: I installed Vim-Latex-...
hengxin's user avatar
  • 141
0 votes
1 answer
1k views

Added wrong path to $PATH variable but can't find old varaible to delete it

I'm trying to install virtualenv and virtualenvwrapper to set up and IDE for Python, following a tutorial for this on Ubuntu I accidentally entered the wrong path to the virtualenvwrapper. When I try ...
Heasummn's user avatar
0 votes
1 answer
2k views

Problem with adding path using zsh

I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh. ...
Andrés Parada's user avatar
3 votes
1 answer
2k views

Path given in Environment variable shows empty after reboot

I am trying to set environment variable CATALINA_HOME for tomcat server. I used the command CATALINA_HOME=/usr/local/apache-tomcat-8.0.22 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 and export ...
Debabratta Jena's user avatar
3 votes
2 answers
7k views

How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?

I am new to Ubuntu. Recently we changed my OS to Ubuntu 15.04. I am installed java-7-openjdk-i386 from "Ubuntu Software Center" and when I use the "Android Studio" then it highly recommended me to ...
Atul Kumar's user avatar
3 votes
1 answer
5k views

Does order of precedence with ENV variable changes which program to use?

Question: Does order of precedence in the PATH influence Ubuntu to choose which program to use? More details: I use .bashrc for declaring private env PATH, I have installed MSP430-gcc from ubuntu ...
Prabhakaran Kasinathan's user avatar
0 votes
1 answer
104 views

Server cannot run apt-get anymore

I was trying to setup an older version of gcc (4.1) on ubuntu 14. I was having some difficulties to set alternatives. I so thread where someone said to use this command: export PATH="/usr/bin:$PATH" ...
meda's user avatar
  • 151
1 vote
2 answers
582 views

Creating a Path Variable

I need to set a path for a variable $week4 to be Week4/assignment so that typing cd $week4 will change the working directory to Week4/assignment/ I've seen a few examples of similar stuff on here, ...
Justin's user avatar
  • 2,111