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
11k views

When to use a preceding slash in path names? (e.g. for the 'cd' command)

I am a novice user and I am trying to install Oracle Java. The process calls for me to access /usr/local/java, but here is the problem. I get as far as /usr/local, then this is the message I get: ...
user avatar
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 ...
Kirk Broadhurst'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
10 votes
2 answers
2k views

What does // mean in a path?

I was working in my terminal, when I misspelled while cd to root (/). Accidentally, I typed // and I got in terminal: root@weblocalhost://# When i type pwd, i get response // but when I type ls -s i ...
Dimitris Theodoridis's user avatar
53 votes
2 answers
229k views

How to add /home/username/bin to $PATH? [duplicate]

Show how you can add /home/<yourusername>/bin to the $PATH variable. Use $HOME (or ~) to represent your home directory.
user233233's user avatar
15 votes
2 answers
17k views

Icon path in .desktop file

On my desktop I have a .desktop file. If I type: Icon=/home/ianbell/Pictures/myLogo.png the icon of the .desktop file changes (the expected result). But, if I type: Icon=~/Pictures/myLogo.png it ...
user avatar
64 votes
7 answers
312k views

How can you quickly get the complete path to a file for use in terminal?

How can you quickly get the complete path to a file for use in terminal?
Olivier Lalonde's user avatar
35 votes
6 answers
344k views

What is a full path name?

I would like to understand what full path name really means. I have a file in my home directory called my_script. I assumed the full path name is ./my_script, meaning that it is in the root folder, ...
sosytee's user avatar
  • 2,708
55 votes
4 answers
745k views

How to write the path of a folder with space in its name? [duplicate]

I can't figure out how to write the path of a folder that includes spaces in its name (in Terminal). I tried: cd /path/path/path/"A Folder"/file cd /path/path/path/'A Folder/file cd /path/path/...
Elian Kamal's user avatar
40 votes
1 answer
156k views

Where is WSL located on my computer?

I am new to Windows and have installed WSL2 based on the instructions provided here. It works fine, but I cannot locate where it has been installed on my computer. The output for pwd is home/nkp68. ...
Krutik's user avatar
  • 511
25 votes
1 answer
9k views

Why isn't tilde recognised as home folder in this case?

This doesn't work: $ ls "~/.wine/drive_c/tools/Family Tree v2.0" ls: cannot access '~/.wine/drive_c/tools/Family Tree v2.0': No such file or directory But this does: $ ls "/home/daniel/.wine/...
Gigi's user avatar
  • 681
16 votes
4 answers
40k views

How do I install VLC extensions?

VLC player allows installing extensions, plugins, skins. They have to be copied into a folder: for example, its .lua extensions should be in a folder with the same name. Where is that?
user avatar
9 votes
2 answers
27k views

How to open ~/.pam_environment?

I wanted to set environment variables JAVA_HOME and PATH. So I wanted to open ~/.pam_environment since it is the best place to set environment variables relevant to a particular user according to the ...
Varuna's user avatar
  • 245
21 votes
3 answers
137k views

How to show the full path of a file or directory in the terminal?

I need to know how the directory name in order to type it out in the terminal. How do I access the names of directories? Windows Explorer used to have a title bar with the full path. Can someone ...
Kalamalka Kid's user avatar
18 votes
2 answers
24k views

Where are gnome extensions preferences stored?

Am creating a dotfiles git repo for my gnome setup and would like the precise settings for the Gnome extensions to be transferrable across installations I found that the extensions themselves are ...
Salim Djerbouh's user avatar
2 votes
1 answer
516 views

After installing binary to another directory, error "No such file or directory"

After uninstalling a program with apt and reinstalling it in another location (ex. pypy with snap), running the program from command line reports bash: /usr/bin/pypy: No such file or directory, but ...
qwr's user avatar
  • 2,852
16 votes
3 answers
96k views

Launch shell scripts from anywhere [duplicate]

Is it possible to run my scripts located in ~/scripts from anywhere? Say i want to run ./scriptname regardless of my current working directory.
mreq's user avatar
  • 4,812
94 votes
5 answers
833k views

How to find python installation directory on Ubuntu

I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path in Ubuntu shell? Is there any way I can let the shell ...
avimehenwal's user avatar
  • 1,353
38 votes
2 answers
138k views

How do I add an executable to my search path?

For reference, I know very little about Linux, and am using it to run a program written by someone else. The instructions say Add the executable 'ttt' to the search path. In most installations this ...
Eugene's user avatar
  • 381
37 votes
4 answers
17k views

Is the tilde, `~` considered to be a relative path?

I'm trying to extract the different part of the Nvidia cuda library installer. I'm using the following command: mkdir ~/Downloads/nvidia_installers ./cuda_6.5.14_linux_64.run -extract=~/Downloads/...
Regan's user avatar
  • 473
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 ...
dimpol's user avatar
  • 499
28 votes
3 answers
10k views

Typing location path instead of clicking directory buttons in the file picker dialog?

Is there a way to change file picker dialog path input? I would like to type the path myself instead of clicking buttons to specify the destination path. In Nautilus I can hit Ctrl+L, to show the path ...
Casual Coder's user avatar
13 votes
1 answer
18k views

Is there a GUI to edit the PATH variable?

There's a GUI in Windows to edit the path variable. I was wondering if there's something equivalent in Ubuntu to do the same.
Shashank Sawant's user avatar
13 votes
3 answers
5k views

How to know the path of a particular software?

Context: I'm trying to make an application automatically start when I login. For this I need to select the path for the application. Here are the paths I already looked into: /sbin /usr/sbin /usr/...
Ced's user avatar
  • 823
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
6 votes
5 answers
73k views

ifconfig : Command 'ifconfig' is available in '/sbin/ifconfig'

My question is related to another open question. My echo $PATH gives me an output which is like /home/sahil/.rvm/gems/ruby-1.9.3-p125/bin:/home/sahil/.rvm/gems/ruby-1.9.3-p125@global/bin:/home/...
Sahil Grover's user avatar
5 votes
4 answers
7k views

How to log in after wrongly modifying path

I wanted to add a path so that the system could find some manually installed executable. However, instead of typing PATH=xxx:$PATH;export PATH at the end of ~/.profile where xxx is the directory in ...
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
3 answers
6k views

Problem in .bashrc

I try to edit .bashrc to view the C-compilers that I installed before. But after opening the new terminal I am stuck with strange error. I am unable to ls the files/directories and nothing works. It ...
HASSAN's user avatar
  • 33
2 votes
1 answer
13k views

How to install packages to /opt or any other folder instead of their original path?

Some packages, like Adobe Reader and NetBeans, allow installation to /opt folder for global use. However, what should I do to install regular applications to the /opt folder? Do I have an option to ...
VedVals's user avatar
  • 3,501
1 vote
1 answer
866 views

What is an object path?

This man page has the following section: udisksctl unmount {--object-path OBJECT | --block-device DEVICE} What is an OBJECT? I tried to give it a path (i.e. media/tim/name) but it doesn't accept ...
Tim's user avatar
  • 33k
0 votes
1 answer
13k views

How to change python3 path pointer?

I am using Ubuntu 20.04.2 LTS with python version 3.9.5 installed. When I type which python in the terminal, it shows /usr/bin/python which is the default path for python2 (2.7 in my case). But when I ...
atanughosh01's user avatar
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 ...
vincent 's user avatar
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. ...
Antoni Borysik's user avatar
22 votes
3 answers
50k views

How can I add ~/.local/bin to my PATH?

I'm just trying to follow this tutorial and set up my environment. My system is WSL Ubuntu 18.04. Here is already an answer on my question, but I as an absolute novice in Linux/UNIX don't know which ...
Alex's user avatar
  • 457
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?
Karl Morrison'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
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
14 votes
3 answers
5k views

Alt+F2 (Run Application) doesn't work for custom commands

In order to speed up Android development, I've edited my ~/.bashrc to add some paths to PATH: export PATH=${PATH}:/opt/android-sdk/tools:/opt/android-sdk/platform-tools This works just fine from the ...
Felix's user avatar
  • 467
10 votes
2 answers
95k views

Adding a Directory to a Path in .profile

I am new to Ubuntu (coming from Windows 7) and I am trying to add a directory to my system path and for some reason I can't get it to work. I am using Ubuntu version 12.04 LTS I tried following this ...
Zaffiro's user avatar
  • 245
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/...
Byte Commander's user avatar
  • 108k
7 votes
4 answers
10k views

"Pointers" with $ Syntax in /etc/environment

Is it valid to have "pointers" in /etc/environment using $FOO syntax? Right now my /etc/environment looks like this: JAVA_HOME=/usr/lib/jvm/java-6-openjdk MAVEN_HOME=/usr/bin/apache-maven/apache-...
Tyson Trautmann's user avatar
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://...
Jeff Puckett's user avatar
  • 1,761
3 votes
2 answers
8k views

How to make aliases for file paths?

I have many folders on my machine, many of those folders have more folders within them, more folders within those folders, and so on... Now when I am doing certain cd and cp operations that I do every ...
user avatar
3 votes
4 answers
15k views

How to solve "Please make sure libcudnn_cnn_infer.so.8 is in your library path!" (WSL Ubuntu)

When I try to run a PyTorch program, it fails: Could not load library libcudnn_cnn_infer.so.8. Error: libcuda.so: cannot open shared object file: No such file or directory Please make sure ...
mulish max's user avatar
2 votes
1 answer
330 views

I am unable to close octave [duplicate]

I had a problem with installing Octave. Now I am unable to close it once it is opened. And I am unable to shutdown the computer. What path should I set, what /etc/environment should I set? I had used ...
raghu ram's user avatar
2 votes
1 answer
3k views

Add executable to Path

I know this question has been asked a hundred times but for some reason all the answers aren't working on my system. I'm using Ubuntu 14.04 I'm trying to add the file activator to my PATH so that I ...
Charon's user avatar
  • 139
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) ...
bit_scientist's user avatar
2 votes
1 answer
6k views

why is sudo not working with exported path?

If not sure if this is close to (or even a duplicate of) Why does sudo not add root's PATH with Ubuntu 12.04?, I'm still posting this question because I didn't understand anything from there, if ...
Hans's user avatar
  • 1,301
1 vote
2 answers
1k views

Added folders to PATH cannot be found using sudo [duplicate]

Possible Duplicate: Environment variables when run with 'sudo' I've added a new folder to my path, but when running the programs (in that folder) with "sudo" it does not work. When I ...
MhdSyrwan's user avatar
  • 301