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

learn more… | top users | synonyms

31
votes
4answers
5k views

Is the tilde, `~` considered as 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/...
14
votes
2answers
108k 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 on ubuntu shell ? Is there any way I can let shell know/...
12
votes
7answers
1k views

How to display the paths in $PATH separately

I cannot figure out how to list the various paths in $PATH separately in so that they look like this: /bin /usr/bin /usr/local/bin etc. Does anyone know the correct variable for this?
11
votes
2answers
43k views

How to find firefox path?

I have firefox in start menu, but there is no "properties" like in windows. how to find out were firefox is installed and how to check path of link in menu?
11
votes
4answers
29k 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 ...
10
votes
2answers
48k 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.
10
votes
5answers
56k 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, ...
9
votes
3answers
4k 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 ...
9
votes
1answer
358 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 ...
9
votes
3answers
43k 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?
9
votes
1answer
19k 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?
8
votes
2answers
493 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 ...
7
votes
4answers
141k views

How to write the path of a folder with space in it's 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/...
7
votes
2answers
2k 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 ...
6
votes
5answers
566 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?
6
votes
2answers
8k 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 ...
6
votes
3answers
384 views

Quick path jumping

I was just at a lecture, where I noticed the lecturer using a command (probably aliased) to jump to a specific folder. Example: ~/code$ j sciproj ~/projects/sciproj2011/$ This looked quite slick, ...
6
votes
2answers
153 views

How to package an application that contains a binary that needs to be in $PATH?

I am packaging an application that contains binaries that would normally go in /usr/bin and a shared library that would go in /usr/lib. However, the package guidelines for submitting applications to ...
5
votes
3answers
24k 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.
5
votes
3answers
3k 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-...
5
votes
2answers
4k views

Where should I store 3rd party jar (Java archive) files?

What would be the best place to save jar files of libraries I want to use in a project, that are not in any repositories, and how should I set permissions? Should I put them in /usr/share/java, or is ...
5
votes
1answer
6k 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.
5
votes
1answer
474 views

Why is $PATH different in the Nautilus-Elementary embedded terminal?

I'm running Ubuntu 10.10 with Nautilus-Elementary installed. When I open the embedded terminal in Nautilus (F7) and run echo $PATH, I get: /usr/bin:/bin:./usr/local/bin:/bin When run the same ...
5
votes
0answers
195 views

How to configure terminal window to open on a specific default path? [duplicate]

Possible Duplicate: How can I start gnome-terminal at a particular directory? At present, each time we open a terminal window we are placed inside our home directory. /home/myuser/ I would ...
4
votes
3answers
10k views

How to find out the installation path to my browser?

I am installing a proprietary CAD application (MEDUSA4 personal) and the installer wants to know the path to my web browser (as a prerequisite for online help). I have the default firefox installation ...
4
votes
1answer
203 views

How to mask stock command in Bash

I have a function that I run often from the CLI, so I gave it the short name t: $ which t /home/dotancohen/.bin/t $ cat `which t` #!/bin/bash ctags-exuberant -f php.tags --languages=PHP -R $ ls -lh ...
4
votes
5answers
31k 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/...
4
votes
1answer
165 views

What is the “path to ant” that Crosswalk speak of?

I am in the process of setting up an Ubuntu 14.04 server to experiment with Crosswalk. I have installed the Java JDK, apt-get install default-jdk and ANT, apt-get install ant. whereis java returns /...
3
votes
4answers
727 views

How can I find the location of files installed via Software Center are available?

I would like to know where I can find the location of program files of programs installed from the Ubuntu Software Center.
3
votes
1answer
17k 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 ...
3
votes
3answers
2k 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 ...
3
votes
2answers
114 views

How to stock all files with the same suffix into a table?

i'm making a little shell script and i want to stock all files with same suffix in a table. i want something like that : path=/home/user/Documents suffix="_suffix.txt" and then a function that ...
3
votes
1answer
3k views

Relative path to source when copying or moving [duplicate]

This might be trivial, but here goes. In terminal, I tend to find myself moving/renaming/copying files that are not in my current working directory instead of cd-ing to the directory of those files ...
3
votes
3answers
10k 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="/...
3
votes
5answers
4k views

Ubuntu haves a different PATH when access via 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 ...
3
votes
2answers
451 views

Why is 'libgnomevfs' files under /usr/include/gnome-vfs-2.0?

Most applications, including the gnomevfs headers themselves, expect the files to be under /usr/include/libgnomevfs, but Ubuntu has them under /usr/include/gnome-vfs-2.0/libgnomevfs. Why? The package ...
3
votes
2answers
263 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 ...
3
votes
1answer
80 views

Altering the prompt

Ok, so i am trying to create an alias, that would allow me to set the current directory in the terminal, the base directory to be displayed in prompt. Let's assume the alias is named basedir For ...
3
votes
1answer
880 views

Unable to execute shell scripts from `~/bin` [duplicate]

I am learning to write shell script from this tutorial on linuxcommand.org. It says - Most modern Linux distributions encourage a practice in which each user has a specific directory for the ...
3
votes
1answer
4k 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 ...
3
votes
2answers
3k views

Permanently Remove Item from `$PATH`

I've dug around forums trying to find a way to get rid of some default items in my path, but to no avail. Here is what it gives right now: /home/blaine/.rvm/gems/ruby-2.0.0-p247/bin:/home/blaine/.rvm/...
3
votes
2answers
3k views

How can I add a directory to my PATH? [duplicate]

Possible Duplicate: How to add a directory to my path? I created a .bash_aliases file with the following contents: PATH=$PATH:$HOME/opt/bin So it adds /home/myuser/opt/bin to $PATH. I made ...
3
votes
1answer
2k views

Where is /usr/share/zoneinfo specified?

We are adding timezone support to our Ubuntu application. The time zone info on my machine is in /usr/share/zoneinfo. Is it always in that directory? If so, where is that specified? If not,...
3
votes
1answer
48 views

Nautilus' Properties tab does not show full path of the file if the path is too long

Whenever a file's path is too long, Nautilus doesn't display the path in full and instead chooses to use ... to replace the last parts of the path. This is annoying and very unhelpful because often it'...
3
votes
1answer
1k views

Can't find binary file in path

folks. I've extracted a tar file with a few binaries into /usr/local/arm/bin and setup my path to include this folder. When I try to run which: $ which arm-elf-gcc /usr/local/arm/bin/arm-elf-gcc ...
3
votes
1answer
1k views

How to give a path argument to os.walk() Python function for my Home directory?

I want to use os.walk() in Python and I have to give a path argument to it like os.walk(path). In Windows, I do it as os.walk(c:\\). What os.walk() does is it searches the whole C: directory. In ...
2
votes
2answers
178 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: ...
2
votes
2answers
36k 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 ...
2
votes
2answers
323 views

Adding a dir to the PATH for my account everywhere

I want to append the directory /home/bart/bin to my PATH. By my PATH, I mean that it should be available whenever I login, whether it be via the terminal, Gnome, KDE or SSH, but not for other users. ...
2
votes
1answer
5k views

How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?

I am new to Ubuntu. Recently we changed my OS to Ubuntu 15.04. I am installed java-7-openjdk-i386 from "Ubuntu Software Center" and when I use the "Android Studio" then it highly recommended me to ...