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

learn more… | top users | synonyms

48
votes
9answers
6k views

Why do I need to type `./` before executing a program in the current directory?

While executing a C program, a.out, using the Ubuntu terminal, why do I always need to type ./ before a.out, instead of just writing a.out? Is there solution for this?
18
votes
2answers
784 views

Why does it take so long for Ubuntu to say “command not found”

For some reason, with my setup, it can take Ubuntu several seconds to respond with "command not found" when I accidentally typo a command. Why does it take so long? Is there any way to shorten the ...
14
votes
4answers
2k views

Copy file and folder path from Nautilus

How can I copy the file and folders full path in Nautilus? In the right-click context menu there is no such option provided. In file/folder property window I can only copy the folder path.
13
votes
2answers
4k views

What are “$PATH” and “~/bin”? How can I have personal scripts?

What is $PATH? How can I have commands/programs which are only available for me? I have seen this path ~/bin mentioned before, but what is it used for, and how do I use it?
9
votes
2answers
3k views

What does .: mean in php include_path?

I'm trying to install Zend on a machine running xampp. Zend's help file says that in order to set up the command-line tools, I need to make sure that the contents of the /library directory are placed ...
7
votes
2answers
19k 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?
7
votes
3answers
2k 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 ...
7
votes
1answer
5k 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?
6
votes
5answers
446 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
3answers
4k 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
2answers
136 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
2answers
220 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, ...
5
votes
2answers
18k 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 ...
5
votes
1answer
360 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
190 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
5answers
3k 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, ...
4
votes
3answers
5k 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
2answers
14k 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?
4
votes
2answers
2k 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 ...
4
votes
1answer
3k 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.
4
votes
2answers
1k 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 ...
3
votes
4answers
275 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
3answers
1k 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
4answers
2k 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
1answer
705 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
2answers
292 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
1answer
66 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
356 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
3answers
3k 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 ...
3
votes
4answers
14k 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 ...
2
votes
2answers
3k 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 ...
2
votes
3answers
954 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 ...
2
votes
2answers
308 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
2answers
224 views

$PATH not working

How can this happen? jon@vaio:~/brickify$ /usr/bin/node -v v0.8.11 jon@vaio:~/brickify$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games ...
2
votes
2answers
161 views

I'm using ~/bin in my $PATH variable, how can I make unity also display my scripts in there?

I have some scripts and some starters for programs I didn't install via the Software Center in my ~/bin folder. It is in my $PATH variable and I can use my scripts by pressing Alt+F2 and also directly ...
2
votes
2answers
20k views

Deploying war files in tomcat6

I am using tomcat5.5 for a long on Ubuntu servers 8.10 and 9.10 and /usr/share/tomcat/webapps/ is the path where I place my .war files and access them on the browser over network. On a sytem I've ...
2
votes
1answer
385 views

set PATH to include custom folders

I refer to help.ubuntu.com to set environment variables. I'm required to set some variables (GRIFFON_HOME and GROOVY_HOME) for a user and also I want to include bin folders to my PATH so I edited ...
2
votes
2answers
812 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 ...
2
votes
1answer
876 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 ...
2
votes
3answers
339 views

gsutil bashrc file path setting

Actually I have just installed gsutil by following the instructions here. But now when I am typing gsutil at command prompt I am getting following: No command was given. Choose one of -b, -d, -e, or ...
2
votes
1answer
927 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 ...
2
votes
1answer
657 views

Adding directory to PATH, various ways and differences

I have seen the thread How to add a directory to my path? I already have added the directory in my PATH by directly editing the /etc/environment. However, I do not get the command working when I use ...
2
votes
1answer
40 views

directory creation problem

What is the meaning of the following statement : I want to install math system named GAP. mkdir: cannot create directory `/usr/local/lib/gap4r5': Permission denied Cannot create directory ...
2
votes
1answer
1k views

Upgrade TexLive from 2012 to 2013 with Ubuntu

I have downloaded TeXLive 2013 and installed it as explained on the developer's website. At the end in the terminal I got the following message: Add /usr/local/texlive/2013/texmf-dist/doc/info to ...
2
votes
1answer
245 views

User in www-data group can not find command

I have installed a new application, and I wish to run it by a php script(system and exec function), so that others can run it through their browsers. I tried to run that php script in my terminal at ...
2
votes
1answer
38 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 ...
2
votes
0answers
303 views

Setting PATH with two different TexLive versions

I have two different versions of TexLive: the Ubuntu binaries for TexLive 2012, which live in usr/share, and TexLive 2013 which lives in usr/local. As per instructions here, my PATH now looks like the ...
2
votes
1answer
66 views

$PATH prolems in Ubuntu

I have an application named delphi in Delphi_Dp directory. Its PATH is /usr/kalyan/Downloads/Delphi_Dp I have done export PATH=$PATH:/usr/kalyan/Downloads/Delphi_Dp echo 'export ...
2
votes
1answer
315 views

How to make ubuntu understand a windows-style folder path as a folder on windows partition?

I have ubuntu and Win7 on dual boot. On windows, a use a program that is set to save things on a given windows folder (like "D:\some folder"). On ubuntu, I can run this exact same program (it's not a ...
2
votes
1answer
66 views

PATH details different in different terminal windows

I have added a particular path to PATH and I am able to see that it has been added when I echo it, but when I echo $PATH in another window I cannot see that path I recently added. I am not sure why I ...