Sponsored Content
Top Forums UNIX for Dummies Questions & Answers PATH settings don't seem to persist across sessions Post 302560162 by Tommyk on Thursday 29th of September 2011 04:15:48 AM
Old 09-29-2011
Quote:
I looked at /etc/bashrc and /etc/profile and neither of them seemed like the appropriate places to be putting that stuff (b/c system-wide functions and were being defined and I didn't wanna mess anything up).
These are no different to the ~/.bashrc or ~/.bash_profile, they just get applied to all users, as long as you append to the bottom of them you wont break anything. And they are not setting any system functions, it is all settings in a users environment.

If you use the local profile to set the PATH settings you need to do it for each user you want to have access to.

Code:
echo "PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH; export PATH" >> /home/username/.bashrc

and just change the username, instead of manually doing vi on each script.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PATH variable settings

The contents of My PATH variable gets printed more than once if get it using the command echo $PATH Is there any way to set it right (5 Replies)
Discussion started by: preyan
5 Replies

2. Solaris

effect of change of mpd preferred path settings

Hello All, In the output of the command "mpdcontrol -no xlist", I found that, some of the preferred paths are marked as "err". You can see the output below: # mpdcontrol -noxlist Unit Dev# MPD_ID/Policy DeviceName FC_AL DevMajMin IOcnt State... (0 Replies)
Discussion started by: sundar3350
0 Replies

3. AIX

tuning network parameters : parameters not persist after reboot

Hello, On Aix 5.2, we changed the parameters tcp_keepinit, tcp_keepintvl and tcp_keepidle with the no command. tunrestore -R is present in inittab in the directory /etc/tunables we can clearly see the inclusion of parameters during reboot, including the file lastboot.log ... (0 Replies)
Discussion started by: dantares
0 Replies

4. Shell Programming and Scripting

Find zero byte file but don't need path

Just i want to ask How to search and display name of zero byte file I have used find command but it is showing complete file path Thanks find . -size 0 giving me zero byte file with location 1)/home/user/a (4 Replies)
Discussion started by: vivek1489
4 Replies

5. UNIX for Dummies Questions & Answers

Exceed - Session Persist after shutdown

I'm wondering if it is possible to use Exceed as a remote desktop and have my session persist after I close it down (ala VNC Viewer). I find it annoying to always have to reopen my windows and files when I shut it down. Thanks! (0 Replies)
Discussion started by: dvd7e
0 Replies

6. Solaris

Delete route so it does not persist after reboot

Solaris 10 I am trying to delete a route using the command: route -p delete 192.0.0.0 192.1.3.254 The route gets delete but for some reason the route pops back up in the routing table after reboot. I also deleted the /etc/inet/static_routes file and the route still persists after reboot.... (6 Replies)
Discussion started by: jastanle84
6 Replies

7. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
APTONCD(1)						      General Commands Manual							APTONCD(1)

NAME
aptoncd - CD/DVD-based repository creator for debian packages SYNOPSIS
aptoncd [options] DESCRIPTION
APTonCD is a complete solution to manage/backup/restore your packages downloaded via apt-get, aptitude and synaptic. APTonCD also is the best choice to download an entire repository and/or specific section of selected mirror, by an pretty GUI. A manual with detailed instructions can be found in the help menu of APTonCD. OPTIONS
APTonCD accept the following command-line call methods: -c, --packages-list=FILE Starts aptoncd listing the packages in FILE -l, --cache-dir=PATH Uses PATH as apt cache dir (instead of /var/cache/apt/archives -r, --temp-dir=PATH Uses PATH as temporary directory for copying files and mounting images AUTHORS APTonCD is developed by Rafael Proenca <cypherbios@ubuntu.com> and Laudeci Oliveira <laudeci@gmail.com>, with some contributors that can be found on the project page. All development is done at http://aptoncd.sourceforge.net This manual page was written by Rafael Proenca <cypherbios@ubuntu.com>. COPYRIGHT
Copyright (C) 2007 Rafael Proenca There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about these matters, see the files named copyright. Aug 15th, 2007 APTONCD(1)
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy