![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do i set environment variable | ahjiefreak | Linux | 4 | 01-20-2008 08:21 PM |
| sed on an environment variable ? | lumix | Shell Programming and Scripting | 3 | 12-15-2007 06:30 PM |
| Using Environment Variable | kaiser | Shell Programming and Scripting | 3 | 05-01-2006 08:28 AM |
| set environment variable? | kohoutek | UNIX for Advanced & Expert Users | 3 | 12-21-2005 05:23 PM |
| Environment Variable | karyn1617 | Shell Programming and Scripting | 2 | 02-04-2005 03:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Environment Variable
Hello,
I need some help to understand system and user environment files, such as .profile and others. I can edit my .profile file in my home directory. What I only touch in this file is the $PATH variable and when I am logged in under a telnet session, the PATH that I specify is used and confirmed by the set command. When I am logged into the CDE, however, that $PATH variable is different. I looked at the .dtprofile file, but I do not see the entries that I see when I run "set". I would like to change for example the MANPATH variable.. What and where are all the environment config files? Does anyone know of a resource on the net so I can read about these files? -Thanks -AJ |
|
||||
|
I know of this file and what it does, but I do not think it answers the question that I posted, fully. There is a lot more info offered by the "set" command other than the default generated profile file. Can you provide more info or sources to research?
|
|
||||
|
To jacobsa
I hope that these answer your request: http://www.ncl.ac.uk/ucs/unix/environment_.html http://www.princeton.edu/~unix/Solaris/CDE.html http://www.bme.unc.edu/studnt_facult.../chapter5.html regards, Da Bionic one |
|
||||
|
su profile
To jacobsa
by default, if you do [su + login] the shell will drop you in the current directory, the same profile as you were before. In order to keep the correct profile, you need to add a 'tilda' after the [su] e.g try this: 1- login as: john 2- do a pwd 3- do a printenv 4- now do a su (say) jack 5- do a pwd 6- do a printenv ... you should find that: pwd and printenv values are the same now try: 4- su ~jack 5- pwd 6- printenv Et voilia.... I hope that it helps May da force be with you... Da Bionic one |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|