Solved

solaris 7 - adding to the path

Posted on 2001-08-06
2
207 Views
Last Modified: 2013-12-27
Hello,
i've just installed solaris 7 server.  I'm trying to add a few directories to the path namely /usr/local/bin.  I have tried adding this to a few .profile files in /etc/skel/ however, when i echo $PATH, the addittional setting is not picked up.  I am logged in as root.

how do i solve this, so that all users including root have /usr/local/bin automatically in there path when they log in?

regards
peewee
0
Comment
Question by:Peewee
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 40 total points
ID: 6356111
if you like to add it for all users, change /etc/profile .
If it's only for specific users, change $HOME/.profile .

After doing that you need to issue:
   . /etc/profile
or
   . ~/.profile

(this is for sh, bash, ksh or alike)
0
 
LVL 5

Author Comment

by:Peewee
ID: 6356857
many thanks
pg
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now