Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

solaris 7 - adding to the path

Posted on 2001-08-06
2
Medium Priority
?
228 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 160 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

824 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