Skip to main content

Questions tagged [paths]

Questions related to path in networking, file system and OS.

Filter by
Sorted by
Tagged with
4 votes
2 answers
5k views

How to get the real path of a sh file that is being sourced

I added this line into my ~/.bashrc . /mnt/c/Users/enzo/drive/projects/dotfiles/init.sh And and inside of init.sh I am trying to get the path of init.sh but I am not able to. I tried this so far: ...
Enzo's user avatar
  • 143
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 votes
1 answer
309 views

Recovering the relative path option

Managed to delete the relative path option in linux by typing in rm .*, now I can't change or add files to any directory. How can these be recovered? Running a ls -a and the standard . and .. ...
Nathan Kelson'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
0 votes
1 answer
35 views

Is there a package installer in which a i can choose where to install?

Since changing the installation path or directory of dpkg is not a good and risky idea I would like to know if there are any package installers in which I can choose to install where I want since my ...
sadad ali's user avatar
3 votes
2 answers
8k views

App installed in directory on the PATH, but not found. Weird /snap/bin - error message

I have the app minikube in /usr/local/bin/minikube. When I do minikube version with the whole path, I get: $ /usr/local/bin/minikube version minikube version: v0.28.2 When I do minikube version ...
ElToro1966's user avatar
-1 votes
1 answer
1k views

How do i specify a file location in terminal?

Running the following commands: wine /Home/Downloads/steamsetup.exe wine Username/Home/downloads/steamsetup.exe resulted in file not found. How do I specify a file location in terminal? I am on ...
Bailey Johnston's user avatar
1 vote
1 answer
18k views

Zip2john issue on ubuntu 18.04 LTS [duplicate]

Problem: root@ITSASECRET:~/src/john/run# zip2john : command not found I want to add that the srcript is in the directory. I also had a lot of trouble installing Rexgen as well as Bison and ...
Red's user avatar
  • 21
1 vote
1 answer
197 views

My PATH variable seems to be set OK, but does not work [duplicate]

I installed some programm (xlsx2csv) using pip3. The executable of the software is in ~/.local/bin. My $PATH is defined in ~/.profile like this: PATH="$HOME/bin:$HOME/.local/bin:$PATH" echo $PATH /...
Bruni's user avatar
  • 10.6k
7 votes
1 answer
50k views

How to find the path of a specific application (Google Chrome)?

I have Google Chrome downloaded on my laptop and I want to find where it is compared to a Windows path use it, basically for a text to speech project. On Windows it is located here : chrome_path = '...
Revolucion for Monica's user avatar
0 votes
1 answer
2k views

Path of a file in the user directory from root directory [closed]

Following is the directory structure for a text file textfile.txt ,what will be the file path for the text file for an python script readtext.py which is in the in the root direcory. The python file ...
ProgR's user avatar
  • 1
1 vote
2 answers
876 views

What is the absolute path to the file that contains all the drives? [closed]

What is the absolute path to the file that contains all the drives, hardware and network shares, that are mounted by the system during boot?
Adrian Cunningham 's user avatar
1 vote
1 answer
130 views

iPython3 opened in Terminal - os.path.dir adds letter 'd' to path and triggers File not found error

Trying to iterate through a folder. I am working on ipython3, opened in Terminal. This is the code (in python 3.6.4): for filename in os.listdir('.'): for file in filename: with open(os....
gl3yn's user avatar
  • 113
2 votes
2 answers
245 views

My script runs fine when I run it from the terminal but it doesn't work with cron. Why?

I'm creating a script to manage my icons and I'm using the command gvfs-set-attribute in order to do that. The script works fine when I run it with the terminal but it fails to work when I use cron. ...
Rafael Muynarsk's user avatar
0 votes
1 answer
273 views

Login Loop in Ubuntu 16.04 after editing the Path

I was editing the path as said in this page: Source After I did that, I logged out, and ever since that, I was not able to Login. I have tried various Login Loop Remedies said in this Exchange, but ...
remedcu's user avatar
  • 103
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
1 vote
1 answer
351 views

CLASSPATH Security

On this post someone mentioned in a comment that adding .: to the PATH environment variable is a security vulnerability. Is adding .: to the CLASSPATH environment variable also a security ...
SkippyNBS's user avatar
  • 113
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
2 votes
3 answers
848 views

Need to clean user home folder and organize game folders (with saves, configs, etc)

I have many installed games, from various sources/stores/frontends (Steam, GOG, Humble Store and Lutris with modules like DOSBox, Libretro, WINE and ScummVM). Unfortunately many game developers elect ...
Paulo Villi'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
4 votes
1 answer
1k views

Can I make `sudo` follow my path via CLI?

You can edit sudoers file and set secure_path to match your path. This is documented in Unix & Linux. Is there a command line switch I can pass to sudo such that it uses the path I have set? For ...
WinEunuuchs2Unix's user avatar
3 votes
2 answers
3k views

Unable to install geojson package for R

I have Ubuntu 16.04 and R 3.4.3. When I run install.packages("geojson", dep=TRUE) in R, I get the following error: dependency ‘protolite’ is not available for package ‘geojson’ Therefore I run ...
Nicu Righeriu's user avatar
1 vote
1 answer
368 views

Hard-Drive name changes depending on file search method

I am new to Linux and Ubuntu and I am struggling with file path names and locations. I have a new computer with LTS 16.04 installed. This computer has a solid state hard drive and an optical drive. ...
GBG's user avatar
  • 310
3 votes
0 answers
696 views

Connect GIMP snap to gmic

So I have installed the GIMP snap, it works nicely. However, how do I get it to use gmic? Can I just point the plugin path to gmic, and where would that be?
Dustin's user avatar
  • 2,103
0 votes
1 answer
353 views

If I compile and install my own Python from source and install packages, will it affect the system Python installation?

Say I compile Python 3 from source, configuring it with --prefix=$HOME/.local and installing it. Since $HOME/.local is in my path, and is preferred, now when I type python3 in my shell, I get my ...
orlp's user avatar
  • 101
2 votes
2 answers
2k views

How can I open games I downloaded?

Every time I download a game from the terminal I can't open it. Example 1: $ sudo apt-get install 0ad Reading package lists... Done Building dependency tree Reading state information... Done ...
Iron Moods's user avatar
2 votes
2 answers
115 views

Reference to home not working in Nautilus Action-Config-Tool

The path field (In the given Screenshot) is given the input: ~/.subseeker/subseeker.py, but it's not working, the code isn't executing when the command runs. I even tried- $HOME/.subseeker/subseeker....
Ubdus Samad's user avatar
0 votes
0 answers
30 views

Backup Ubuntu Software and Wipe Ubuntu

Hello I am new to Ubuntu. I Installed a bunch of softwares like Android Studio and JDK and other stuff. Now my ubuntu is messed up and It doesn't show the login screen and when I start lightdm and put ...
MohsenFM'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
0 votes
0 answers
905 views

got an error gawk: symbol lookup error: gawk: undefined symbol: mpfr_z_sub

all, I get an error that indicates that gawk: symbol lookup error: gawk: undefined symbol: mpfr_z_sub when I want to compile a simulation from www.yonch.com/wireless. This error was occurred when I ...
Junchao Ma's user avatar
0 votes
0 answers
691 views

Nvidia GPU heating up

I noticed occasionally my GPU was heating up when doing usual tasks (idle + Internet browsing, not video). I select intel-onboard in Nvidia-server but the problem persists. I used the following ...
Just_Alex's user avatar
  • 178
0 votes
1 answer
1k views

How to add/edit PATH when using X2Go client logging into ubuntu terminal

noob here. I want to add a folder to PATH only under my account. Tried to search for answers for quite a while. Ending up get methods like creating .profile .bash_profile under my home directory(~), ...
Li Sun's user avatar
  • 1
7 votes
3 answers
7k views

What is the difference between local and .local in ubuntu?

Echoing path in ubuntu returns following colon separated paths, /home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/...
Anam Nizami's user avatar
1 vote
0 answers
61 views

Is there any difference in setting path for golang, python or java in ubuntu? [duplicate]

In some tutorials path is set in ~/.profile however in some other tutorials they use etc/path or ~/.bashrc, can you explain whats the difference and how it works in linux ubuntu. I am sorry for such a ...
Anam Nizami's user avatar
2 votes
1 answer
11k views

Why does `/sbin` not included in $PATH for new user?

ifconfig is located in /sbin/ifconfig. I don't have problem issuing ifconfig command in root user. The problem started when I created a new user. root@Ubuntu:~# useradd -m user root@Ubuntu:~# root@...
Charlotte Russell's user avatar
16 votes
3 answers
8k views

Is ./ (dot slash) a command?

Core of the question: The question arose while I could not install the software, so I am genuinely asking about ./ because I didn't know about it and the output "command not found" was confusing me ...
ubuntubu's user avatar
  • 433
4 votes
2 answers
123k views

How to change default ftp directory?

When I connect with FTP using a pem file it is connecting fine and by default, it is showing this directory: /home/ubuntu Now I am trying to change the /home/ubuntu directory to /var/www/...
Mr world wide's user avatar
2 votes
4 answers
1k views

Converting a windows Run.bat to a Run.sh

"c:\program files\java\jdk1.8.0_75\bin\java.exe" -noverify -Xbootclasspath/a:"LSA.jar";"lib/bcel-5.2.jar";"lib/rsyntax.jar";"client.jar" -javaagent:"LSA.jar"=config.js -jar client.jar I have a ...
Pjer's user avatar
  • 31
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
0 votes
1 answer
1k views

CPLEX and PYTHONPATH

First I installed CPLEX on my ubuntu. Then I set my PYTHONPATH by adding the following line to .bashrc file export PYTHONPATH="/opt/ibm/ILOG/CPLEX_Studio1271/cplex/python/2.7/x86-64_linux" but when ...
Snochacz's user avatar
  • 101
-1 votes
1 answer
92 views

A strange path to the folder [closed]

I have a folder called DAT on the desktop. I am not sure what I did the folder disappeared. Using find command find / -name DAT 2>/dev/null. This is the output /home/t-gang/ /DL4PL. I mean what is ...
user1935724'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
1 vote
1 answer
915 views

Where to find Icon in .desktop file mantioned without path?

Here is an example for Hydrogen Drum Machine [Desktop Entry] X-AppInstall-Package=hydrogen X-AppInstall-Popcon=208 X-AppInstall-Section=universe Name=Hydrogen Comment=Create drum sequences ...
mevsme's user avatar
  • 521
1 vote
2 answers
3k views

How do I add make a directory like a variable?

Sorry for my weird question, I am very new to Linux and I am not sure what the correct terminology is. I am writing a bash script, and I want to be able to add some directories to... I don't know ...
John Lexus'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
1 vote
2 answers
257 views

How to edit the highest parent directory of a path while navigating

Noob question: Let's say I'm in: user@mj:~/var/www/html/mag/something/else/forever$ And I want to be at: user@mj:/var/www/html/mag/something/else/forever$ Mind the ~ I can achieve that with: ...
M J's user avatar
  • 129
4 votes
3 answers
18k views

/usr/bin/env: ‘ruby’: No such file or directory

When crontab tries to execute the script: @reboot sh /home/username/unicorn_start.sh > /home/username/unicorn_start.out 2>&1 It creates me a log file with the following content: /usr/bin/...
Alex Zakruzhetskyi's user avatar
-2 votes
1 answer
75 views

Java compiles but not Executes [closed]

I tried many ways to execute but it is showing the same error Error: Could not find or load main class corePKI_Pkg.AppKeyUtil
Anoop's user avatar
  • 11

1 2 3
4
5
10