Skip to main content

Questions tagged [paths]

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

Filter by
Sorted by
Tagged with
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
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
87 votes
17 answers
44k views

How to display $PATH as one directory per line?

I cannot figure out how to list the various paths in $PATH separately so that they look like this: /bin /usr/bin /usr/local/bin How can this be done?
HankG's user avatar
  • 975
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
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
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
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
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
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
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
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
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
27 votes
2 answers
131k views

How do I find the Firefox binary path?

I have Firefox in the start menu, but there are no "properties" like in Windows. How do I find out were Firefox is installed and how do I check the path of link of a menu item?
UAdapter's user avatar
  • 17.7k
26 votes
5 answers
116k views

Where is my boost lib file?

I am using boost. I installed it using sudo apt-get install. Now I am unable to find my boost lib file on my filesystem. I want to include the path of the lib in my Qt project. grepping is taking too ...
Chani's user avatar
  • 787
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
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
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
20 votes
4 answers
154k views

How to find full path of device I've connected?

I have USB device, which is actually identified as serial device by Ubuntu 10.04. How can I find its full path? ls -la /dev/ shows a lot of devices. How to choose correct one?
LA_'s user avatar
  • 995
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
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
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 ...
edesz's user avatar
  • 773
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
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
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
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
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
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
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
11 votes
5 answers
35k views

How do I find where an application is installed?

I installed wireshark recently. I have no idea in which directory it was installed, but it's not in /opt. How do I find where it's installed?
Alan Coromano's user avatar
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 ...
yogesh Ratudi's user avatar
11 votes
3 answers
11k views

Can VeraCrypt use persistent mount points on Linux?

Can VeraCrypt use persistent mount points on Linux? Windows + VeraCrypt + encrypted volume absolute paths On Windows I can mount veracrypt encrypted partitions/disks via batch script which employs ...
Christianus's user avatar
10 votes
5 answers
11k views

Why doesn’t `mv file /dir` move the file to a subdirectory of the current working directory?

I was in my /etc directory and typed the command me@mylaptop:/etc$ sudo mv MyFile.conf /openvpn I thought that would move the file into the directory openvpn which is a subdirectory of the /etc ...
whitelightning's user avatar
10 votes
3 answers
32k views

Use php command instead of full path with xampp installation?

I have Xubuntu installation and XAMPP installed on my PC, and everything works great. However, lately I am experimenting a little bit with Laravel framework and a lot of tutorials and people just use ...
lonerunner's user avatar
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
10 votes
2 answers
27k views

Add path to PATH environment variable for www-data

I'm trying to add /usr/local/texlive/2012/bin/x86_64-linux to the PATH environment for my Apache user (www-data) after installing TeX Live 2012 manually. I edited my /etc/environment export PATH="/...
DigNative's user avatar
  • 343
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
10 votes
6 answers
3k views

Alternative to Nautilus for copying file paths?

I just moved from Ubuntu 18.04 to 20.04. A strange behaviour in Files (Nautilus) is that you cannot copy a file path. Instead, it copies x-special/nautilus-clipboard copy file:///home/mywork/test.txt ...
Googlebot's user avatar
  • 1,807
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/...
Anon's user avatar
  • 12.1k
9 votes
8 answers
11k views

Ubuntu has a different PATH when accessed over XRDP session

Noob here: I have a problem, when i access my server via SSH, the $PATH is correct root@ks391320:~# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games But when i open ...
Ivan Castellanos's 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
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
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 ...
Anon's user avatar
  • 12.1k
9 votes
2 answers
24k views

how to use "update-alternatives" to manage multiple installed version of the same app

I frequently encounter path related problems while compiling or running an app.I have two versions of node in my system, one is from official repo, the other manually installed from source. Today I ...
kenn's user avatar
  • 5,182
9 votes
1 answer
440 views

How to check what command is taken?

I have a shell script called foo.sh in /usr/local/sbin. Besides I use another script with the same name. It is stored in /home/user/scripts. Both paths belong to PATH. How can I find out, which one ...
null's user avatar
  • 1,241
9 votes
2 answers
36k views

PATH not working even after successfully modifying it

For some reason I am successful in adding new directories to my $PATH but when I run the commands in the terminal the $PATH doesn't summon them. I modified the $PATH in the ~/.bashrc file, and added ...
Aldo's user avatar
  • 91
7 votes
1 answer
2k views

After installing youtube-dl on Ubuntu 21.10 with the instructions on github many applications, including default text editor, broke

A new user here, running ubuntu on version 21.10 impish. I was installing youtube-dl with the instructions on the github page (https://github.com/ytdl-org/youtube-dl#installation): $ sudo curl -L ...
Tomptp's user avatar
  • 73
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

1
2 3 4 5
10