Questions tagged [paths]
Questions related to path in networking, file system and OS.
455
questions
3
votes
2
answers
177
views
Any inputs in the Ubuntu login GUI result in total freezing of the system
1. THE SITUATION
As of about two days ago, upon attempting to log into my Ubuntu machine, any inputs in the Ubuntu login GUI result in a total freezing of the system. Prior to UN/Password being ...
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 ...
2
votes
1
answer
3k
views
Ubuntu 16.04 correct way to specify a directory / folder using terminal chown to recursively change ownership / permissions
OK - so I open terminal and I want to use chown to change permissions / ownership recursively. I want to use
sudo chown -R username:group directory
The folder I want to change permissions on is ...
3
votes
2
answers
6k
views
Running Wine applications from different terminal paths yield different results? [closed]
I'm going to use the game "cosmoteer" as an example (as it's free), but I ran into this with others.
Issue:
If I run:
cd /path/to/executable/
wine exec.exe
The program runs.
But if I do:
wine ...
4
votes
1
answer
3k
views
Why does `which` point to a different binary? [duplicate]
I have 2 versions of curl installed on my system, one with http2 support.
I thought I could use which to point to the binary, but it doesn't seem to work the way I expect.
$ curl --http2 -I https://...
0
votes
1
answer
1k
views
Add symbolic link or add to path? [duplicate]
I installed the latest version of Eclipse using the installer wizard.
(I was following the instructions in the following link.)
I can run eclipse from the command line as follows:
$ ~/eclipse/java-...
1
vote
1
answer
4k
views
How to change launcher icon path of an installed application
I have installed pyCharm in mu ubuntu machine, I use the kde enviroment. The application folder was at /home/userName/pyCharm and the application icon was pointing at /home/userName/pyCharm/bin/...
2
votes
1
answer
1k
views
Can't login through GUI 16.04
I can't login through GUI on Ubuntu version 16.04. This problem occurred after installing JDK 8 and Scala/SBT (if I remember correctly, it was needed to declare paths for Java or something).
I have ...
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 ?
3
votes
0
answers
1k
views
How to hide files and folders in PCManFM without changing their path?
I'm running Lubuntu 16.04 LTS and thus, use the PCManFM file manager. I want to hide some files and folders from the view that the file manager provides, but I can not use the .-prefix or any other ...
2
votes
1
answer
2k
views
PATH variable issue
l have trouble with my PATH variable:
each time l run command like pip, bash, mkdir ..
for instance
The command could not be located because '/bin' is not included in the PATH environment variable....
37
votes
4
answers
302k
views
Variable path issue : conda command not found
After installing Anaconda correctly. I wanted after finishing the installation to do the following. I forget to do it while installing anaconda:
export PATH="/root/anaconda3/bin"
conda --version
...
1
vote
1
answer
134
views
Using symlinks stored in /usr/bin that point to other folders to have them in path
I have a python script (which requires several other python files) in a folder, ~/Desktop/ufonet.
I thought that by making a symlink (I tried both hard and soft) to that folder it would put it in my ...
2
votes
1
answer
2k
views
Getting "unable to stat //bundle (No such file or directory)" even though the file exists
I'm hoping this is just a problem with my not understanding how the $PATH variable works. I'm using Ubuntu 14.04. I'm trying to run rails through a unicorn server. I have the below configuration ...
17
votes
4
answers
31k
views
Windows filepath converted to Linux filepath
I have a Windows path in a bash variable as a string:
file='C:\Users\abcd\Downloads\testingFile.log'
I am trying to convert this path into a Linux path starting with /c/Users....
My attempt
The ...
2
votes
1
answer
6k
views
opencv python fails to load image
I am following this tutorial
The suggested code is:
import numpy as np
import cv2
# Load an color image in grayscale
img = cv2.imread('messi5.jpg',0)
cv2.imshow('image',img)
cv2.waitKey(0)
...
7
votes
0
answers
20k
views
Where is BLAS and LAPACK installed - the directory?
I am trying find which directory path BLAS and LAPACK are installed on.
I tried:
$ type libblas-dev
bash: type: libblas-dev: not found
Then:
$ apt-cache policy libblas-dev
libblas-dev:
...
30
votes
4
answers
90k
views
When writing a bash script, how do I get the absolute path of the location of the current file?
Suppose I have a bash file called myBash.bash. It resides in:
/myDirect/myFolder/myBash.bash
Now I want to use the string /myDirect/myFolder (the location of myBash.bash) inside the script. Is ...
9
votes
1
answer
3k
views
How can I sanitize or escape absolute paths returned by realpath or readlink?
realpath and readlink return absolute paths:
+akiva@X230:~$ realpath ZannaIsAwesome
/home/akiva/ZannaIsAwesome
A path like that is easy to deal with. However, something like this is going to have ...
9
votes
3
answers
2k
views
Can I feed a bash script a local file into $1 and have it echo the file's absolute path? [duplicate]
Pretty self explanatory.
The first argument should be:
Checked if the file exists
Echo that file's absolute path
For example:
+akiva@akiva-ThinkPad-X230:~$ ./myscript myfile.txt
/home/akiva/...
1
vote
1
answer
13k
views
How to remove a directory path from PATH permanently?
I am using Ubuntu 16.04 LTS. I am really new to Linux.
I created a softwares directory within the Downloads dir for all the software and added it to my PATH. Then I was advised that it's better to ...
11
votes
5
answers
92k
views
How to set anaconda as a default python?
I have just installed the Anaconda (for ipython notebook -- wanted to run some pandas programme). It is installed successfully but the problem here is whenever I type which python, it is always using ...
1
vote
1
answer
2k
views
How to change path for command
I had a self-compiled program installed on my computer. Tried to delete it by removing all of the folders and files, including the binaries located in usr/local/bin/.
I reinstalled the program from ...
1
vote
1
answer
1k
views
Where is the golang-1.7 binary?
I've installed golang-1.7 on 16.10, but when I run, e.g. go version I get /usr/bin/go: No such file or directory.
So I'd like to add the path to $PATH so I can use go 1.7, but I don't know where to ...
0
votes
0
answers
637
views
Program is not accessible from the command-line
I am trying to use BUSCO program for bioinformatic analysis. BUSCO need to Agustus program as dependency. According to BUSCO’s user guide I must add Augustus to path and I did it as following:
...
34
votes
3
answers
169k
views
How to put executable to /usr/local/bin? [duplicate]
I realise this is basic but I have read two pages of google answers and am still unclear 'How to put executable in /usr/local/bin?'
I have downloaded a package and made the executable called profit. ...
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 ...
3
votes
1
answer
6k
views
Why is /var/www a recommended location to host your web app?
I'm now trying to host my web app which is based on Ghost on Google Compute Engine, which uses Ubuntu 16.04, but I found the following suggestion to host a Ghost app:
Unzip Ghost into the folder /var/...
18
votes
4
answers
76k
views
Show full path to file in terminal [duplicate]
I have a file. I'd like to echo out the full path to it in the terminal.
Which command would?
0
votes
0
answers
390
views
NCL Path setting Ubuntu
I am having a problem trying to convert a file using the ncl_convert2nc command. Every time I do, I get this message:
fatal:NclGRIB2: Invalid Product Definition Template.
fatal:Could not open (./...
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 ...
7
votes
2
answers
600
views
Having a list of paths, how can I filter out subdirectories of previously mentioned paths?
Let's say I have a sorted list of absolute paths, like the one in my answer here (shortened and modified for this question):
/proc
/proc/sys/fs/binfmt_misc
/proc/sys/fs/binfmt_misc
/run
/run/...
0
votes
1
answer
297
views
Two concurent Eclipse versions on my laptop, wrong one launched from the shortcut
I have an old eclipse version already installed on my laptop, I installed neo from the official website. now I have two concurrent versions of eclipse. I want to launch the last version when I click ...
9
votes
1
answer
18k
views
Pytest is in PATH but not found
I've installed pytest for python testing, but I get No such file or directory error when simply trying to run it from a project folder.
It's in a location that should be accessible through the PATH ...
0
votes
1
answer
5k
views
Prepend folder to PATH
I want to append my anaconda folder to the beginning of $PATH so that I can use python and pip from Ananconda
Here is my ~/.profile:
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it ...
0
votes
3
answers
208
views
Unable to login into Ubuntu
I am using Ubuntu 14.04 (On VM Player) but unable to login suddenly. I am entering the correct password, because if I enter wrong password it gives password error message, and not otherwise.
It just ...
2
votes
1
answer
2k
views
No path in .bashrc [duplicate]
I am trying to add path in .bashrc ( sudo gedit ~/.bashrc). When I search for exiting path there is none.
But if I echo $PATH on terminal prompt I do see some paths.
I need to edit (add to) the PATH ...
0
votes
1
answer
251
views
Adding executable sss to bin path
I'm trying to follow this instruction but I'm not sure how. I have very little knowldge of Linux.
Add the executable "sss" to search path. In most installations this
can be accomplished by ...
1
vote
2
answers
88
views
Ubuntu command ./ [duplicate]
I was wondering What the command ./ exactly does
example:./ts3client_runscript.sh start
Thanks for help.
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?
1
vote
1
answer
3k
views
gedit default directory and .desktop file
I have an icon for gedit in my launcher in Ubuntu 16.04. I had a problem with multiple icons in the launcher (see, e.g., Why are there two icons in the Unity launcher for Nautilus?), which I solved by ...
0
votes
1
answer
752
views
How to add a directory permanently to my Path? [duplicate]
Basically I want to know that. How can I add a directory (/tmp in my case) to the Path permanently from the terminal?
0
votes
1
answer
60
views
putting a new directory in path [duplicate]
I am new to Ubuntu and am using the Anaconda platform to develop in Pyton and have a directory in /home/myPython/ containing .py files.
I would like to type a file name from the terminal (E.G. ...
2
votes
1
answer
2k
views
Install java in a linux server without admin rights
I am using a cloud computing server were I don't have admin rights, for biology research which has java's
version:
user@server:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version ...
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 ...
4
votes
2
answers
4k
views
How do I find the full path to a file?
I'm running into a little bit of bother with finding the path of a file called oragi I tried the find command but it didn't help.
I'm following the instructions on this page if it is of any help. :) ...
0
votes
1
answer
2k
views
path to javaldx not found (error on libdbus-glib-1.so.2) but JRE is available
trying to run 32 bit dbg build LibreOffice on 64 bits Ubuntu...
$ LibreOfficeDev_5.3.0.0.alpha0_Linux_x86_archive/program/soffice
javaldx: Could not find a Java Runtime Environment!
Warning: failed ...
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 ...
2
votes
1
answer
890
views
Using ls command with a 'path' to display contents inside of a directory
Okay, so I have three questions that regard to the title.
How do I use the ls command with an absolute path to display the contents of a directory? For example, the /home/documents directory?
How do ...
3
votes
1
answer
2k
views
Create txt with full paths to files and some additional text
I have a bunch of files, in many folders and I wanted to create txt file with full paths to this files and with space and name of the directory they are in. something like:
halva/foo/bar/1/something....