Wandering Thoughts: Recent Entries For 2006/02/07

Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web.

2006-02-07

$PATH in Solaris

It's always the little things about new Unix systems that get to me. Take $PATH on Solaris.

On a modern Linux distribution with a stock install, a sysadmin's full $PATH needs only five directories:

/bin /usr/bin /sbin /usr/sbin /usr/X11R6/bin

(Sometimes /usr/bin/X11 is used instead of /usr/X11R6/bin.)

On Solaris 9, my $PATH is (so far):

/usr/bin /bin /usr/sbin /sbin /usr/ccs/bin /opt/sfw/bin /usr/openwin/bin /usr/sfw/bin

Why are all of these necessary? Well,

  • /usr/ccs/bin is where Solaris hides make (and m4).
  • /usr/openwin/bin is where all the X programs live.
  • /usr/sfw/bin has wget.
  • /opt/sfw/bin has all the useful freeware programs, like rsync, python, lynx, and a diff that understands -u.

If I want to do anything with Sun's dt* tools, I need to add /usr/dt/bin. If I fiddled much with Java, I'd want to add /usr/java/bin.

Personally, I think that this is the sign of immature package management tools in Solaris 9. Not needing a pile of entries in $PATH is much easier for users, and decent package management tools make it no more difficult for the system administrator to manage.

solaris/SolarisPATH written at 01:47:15; Add Comment

These are my WanderingThoughts
(About the blog)

GettingAround
Full index of entries
Recent comments

This is part of CSpace, and is written by ChrisSiebenmann.
Twitter: @thatcks

* * *

Atom feeds are available; see the bottom of most pages.

This is a DWiki.
(Help)

Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web

Search:
By day for February 2006: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28; before February; after February.

Page tools: See As Normal.
Search:
Login: Password:
Atom Syndication: Recent Pages, Recent Comments.

This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.