I'm trying to add a directory to my path so it will always be in my Linux path. I've tried:
export PATH=$PATH:/path/to/dir
This works, however each time I exit the terminal and start a new terminal instance, this path is lost, and I need to run the export command again.
How can I do it so this will be set permanently?
As far as I understand, the usual way to add a path to the PATH environment variable is by concatenating paths separated by the : character.
First off my machine is running Fedora 16 x64
I am trying to figure out why I can not get my GUI terminal window to refresh the path.
I recently added a new location to the path (in .bash_profile), after closing the GUI terminal and reopenning it, the new location is still not showing. When I go to tty2 the new path is listed.
I am trying to install the play framework permanently.
http://www.playframework.org/documentation/2.0.2/Installing
export PATH=$PATH:/path/to/play20
This works fine, but after i close my command line, i have to reinstall it.
Is there a permanent solution?
Hi.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
Code:
'/path/to/files/file00010000070874.EXT'
'/path/to/files/file00010000070875.EXT'
'/path/to/files/file00010000070876.EXT'
'/path/to/files/file00010000070877.EXT'
'/path/to/files/file00010000070878.EXT'
'/path/to/files/file00010000070879.EXT'
'/p
I am a very beginner to ubuntu. I have just installed ubuntu 12.0.4LTS in virtual box and try to run a start up script.
I apologize if this is an overly-long question, but this is detailed, complex stuff I'm wading in:This is from Chapter 1 of the GNU/Linux tutorials:1.5.3. "$PATH" variableWhen you type a command into the shell, the shell searches the command in the list of directories contained in the "$PATH" environment variable.
I have a user, say user1 which has modifications to its .bash_profile, one of them changing the PATH, eg: export PATH=/some/place:$PATH. This change works fine if I log on as user1 or do a su - user1.
But if I try to run a command via su as root, eg:
su -c test.sh oracle
(test contains echo $PATH)
It doesn't seem to have the modified PATH (or the root's PATH, for that matter).
I am specifying path to my command in the file /etc/profile:
export PATH=$PATH:/usr/app/cpn/bin
My command is located in:
$ which ydisplay
/usr/app/cpn/bin/ydisplay
So, when I performing "echo $PATH" output is looks like:
$ echo $PATH
...:/usr/app/cpn/bin
And everything is OK, but when I am trying to launch my command via SSH I am getting error:
$ ssh 127.0.0.1 ydisplay
$ bash: ydispla