Software :: Where Are The PATH Variables Stored In
Aug 20, 2010
Dear when I issue the following command at shell: echo $PATH All the user variables are displayed on the console terminal window: Now my question is that, In which file these variables are stored and where is it stored? My Problem: I had installed OpenJDK that came with Fedora-12. Now I have uninstalled it. I want to use SunJDK6. After installation I want to set new JVM in path variables. I can set variables, but before doing so I want to remove some old variables.
View 2 Replies
ADVERTISEMENT
Jun 29, 2011
I want to add following variables to PATH. I am doing following steps.
1- I open terminal window.
2- I write following commands :
export GOROOT=/home/linux/go/hg
export GOOS=linux
[Code].....
My problem is that , env is not showing above mentioned variables in PATH. Or I am using wrong command to get stored paths or I am storing my path variables in wrong file ?
how I store above mentioned variables in PATH permanently.
View 1 Replies
View Related
Jun 20, 2011
I have what I hope is a fairly simple question to answer. In my ~/.bashrc file I can create this alias:
Code:
alias uChmodDP='chmod -R $1 $2' #specify permissions. and the variables work fine. But I cannot seem to get any love from this alias:
Code:
alias umnt='umount /dev/$1' I realize the likely problem is the variable following hot on the heels of a specific directory, but is there anyway to specify a variable in an alias like this? For some reason I cannot umount usb pen drives by right clicking, and have to always resort to the terminal to do so, which for me is no real biggie, but if I could create this alias it would be an even better no biggie to umount using the terminal.
Actually, the inability to right click to umount usb devices seems to be a Thunar issue since I run xubuntu. Using Nautilus I am able to right click and eject/safely remove devices. Using Thunar however, right click unmount always pukes back an error that the device must have been mounted on the command line or some such BS. But like I said it is no real biggie to use terminal, but an alias would be even nicer. I prefer using Thunar and Xubu most of the time b/c my laptop is quite underpowered.
View 3 Replies
View Related
Jan 8, 2011
I edited /etc/profile to look like:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
[code]....
When i type env, it just shows: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin It also shows JAVA_HOME, CLASSPATH and others were set up. Trying to get updatetool in glassfish usable for any user and during any session. I did the export command in a shell, and it worked, but not after closing the session. how to do environment variables.
View 3 Replies
View Related
Jul 7, 2011
I am trying to create a file, that has a variable assigned to it, in another directory. For some reason when I run the script it creates the file only in my pwd and I cannot for the life of me figure out why.My pwd at the moment is Desktop but it does not matter as I have tried from elsewhere. I have tried the touch command in the following ways (some will be obviously incorrect but I was desperate)and many more as well as the original format listed.
View 1 Replies
View Related
Sep 17, 2010
I am having problems with symbolic links and the $PATH variable.I have a directory:# /usr/rulerX/squarewhere /usr/rulerX/square is a symbolic link such that:
# ls -la
square --> square.hg.current
My path variable is set as:
[code]....
View 2 Replies
View Related
Oct 20, 2010
I have machine that I used to VNC to on my network with Remote Desktop Viewer from my Fedora 12. When I first connected I checked the checkbox that I wanted to store the pw. Now the pw on the other machine has changed but Remote Desktop Viewer does not ask for a new password, it just gives me a black screen, like I am connected but I can't see anything. I'd like to know if anyone knows where this pw data is stored on the system so I can start fresh. I already tried uninstalling Remote Desktop Viewer and installing it again.
View 1 Replies
View Related
Apr 6, 2011
mkvmerge -o <filename without extension>_TV.mkv -S <filename> && mkvextract tracks <filename> 3:<filename without extension>.*** && perl /home/brian/Desktop/ass2srt.pl <filename without extension>.*** && rm <filename without extension>.***
Doing these commands for multiple command line file inputs is the goal. So I can just type ./script.sh *.mkv in my terminal.This is what I have so far, but it doesn't work whatsoever.
View 2 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Jul 17, 2009
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Apr 26, 2011
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies
View Related
Oct 21, 2010
how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.
View 2 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
Apr 19, 2009
I am trying to figure out how i can add the path /usr/sbin/ into the $PATH variable. I want this to be used from the normal account. I am bored settinh this manualy each time my computer starts.
View 2 Replies
View Related
Jun 14, 2011
When I add some path in .bashrc by commenting out old path and adding new one like this:
#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY
After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.
View 10 Replies
View Related
Aug 13, 2010
Does anyone know how to get the path with a inode number by C programming?
Or can I get the absolute path without giving a "path" but a inode number by C?
like this: get_path(unsigned inode);
not such this function: getcwd(".", xxx);
taowuwen@gmail.com
View 7 Replies
View Related
Mar 23, 2010
running Windows 7 64bit with VMware Workstation 7.01-build 227600. I have some knowledge of Linux, I have installed f12 and have updated the system as of 03/22/2010. All updates completed successfully.
1) How do I install VMTools on the f12 (after mounting the CD/DVD tool package)
2) How do I update the gcc files it says are dependencies?
Here's what I get on installation:Before you can compile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel
and then I am prompted for this input from the install script:
Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]
and this is where I get stuck. How do I get around this or satisfy the requirements for the install?
View 5 Replies
View Related
Jul 12, 2011
kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17
Code:
As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.
If I am root, things go well:
Code:
View 16 Replies
View Related
Aug 18, 2011
Where is a typical Linux program installed Where does a program install on linux?
In Windows it's clear - Program files - all programs are there. But where are programs in linux stored?
View 1 Replies
View Related
Nov 29, 2010
GWhere does Ubuntu store installed programs?I need to go into a program and add a .dll.
View 7 Replies
View Related
Jun 6, 2011
I'm using the default email that comes with Ubuntu.What I had:
- 10.10 installed onto a terabyte hard drive with email organized into individual folders under the main folder
What I did:
- bought a new terabyte hard drive and installed 11.04 on it
- set up old terabyte drive as backup drive but kept everything on it
So how do I dig into the old drive to get the email off of it and into my 11.04 install? I didn't overwrite any files, I need to get the mail off before I can do that.
View 9 Replies
View Related
Nov 18, 2010
I have a SLES-10-SP2 installation with both a /boot and / directories. Is the MBR stored in the /boot or /.
View 3 Replies
View Related
Aug 12, 2011
I run debian squeeze. I use apt-get install openjdk-6-jdk. But I do not understand how I can figure out where the files are stored?
View 1 Replies
View Related
Dec 7, 2009
Where are temp files stored in SuSE 11.0? I am trying to find all of those videos and .jpgs and other miscellaneous files I've downloaded in the past, and which are now only taking up space on my hard drive. I'd like to clean out all of that. I have looked in both /tmp and in /.kde but don't see what I'm looking for.
View 9 Replies
View Related
Nov 25, 2010
I was reading through the link on journaling-filesystems and i would like to know where exactly is the journal stored in my Harddisk.
View 1 Replies
View Related
Apr 28, 2011
I've installed Postfix MTA in Xubuntu. Where are all the emails stored in my Postfix server?
View 2 Replies
View Related
Apr 2, 2010
Where the cron tables are stored?
IE crontab -e (or -l)
and
the system one :-
sudo crontab -e (or -l)
I need to retrieve them from a system backup, don't know where to look.
View 2 Replies
View Related