Questions tagged [paths]

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

  1. Networking: A bang path or explicitly routed Internet address; a node-by-node specification of a link between two machines.

  2. File system: A pathname.

  3. Operating System: The list of directories the kernel (under Ubuntu/Linux/Unix) searches for executables. It is stored as part of the ॒environment_ in both operating systems.

456 questions
148
votes
6 answers

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 two places?
pkaramol
  • 2,291
98
votes
5 answers

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 know/choose at runtime which python version is to be…
avimehenwal
  • 1,403
  • 2
  • 15
  • 17
90
votes
17 answers

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
  • 1,005
64
votes
7 answers

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?
60
votes
1 answer

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. How do I access files in my Windows machine from…
Krutik
  • 711
55
votes
4 answers

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

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/path/A_Folder/file but they all return the error…
Elian Kamal
  • 761
  • 2
  • 7
  • 11
54
votes
2 answers

How to add /home/username/bin to $PATH?

Show how you can add /home//bin to the $PATH variable. Use $HOME (or ~) to represent your home directory.
39
votes
2 answers

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 can be accomplished by linking the file to the…
Eugene
  • 391
37
votes
4 answers

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 conda command not found then I opened gedit…
vincent
  • 571
  • 3
  • 9
  • 14
37
votes
4 answers

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/nvidia_installers And I get the following…
Regan
  • 473
36
votes
4 answers

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 there a command I can use to find this…
dimpol
  • 559
35
votes
6 answers

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, but I am not sure. Can someone please enlighten me…
sosytee
  • 2,738
34
votes
3 answers

How to put executable to /usr/local/bin?

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. What is the step by step command line to make…
28
votes
3 answers

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 text box. In Save page as dialog the same…
27
votes
2 answers

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
  • 17,967
1
2 3
30 31