Solved

solaris 7 - adding to the path

Posted on 2001-08-06
2
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

636 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