Finding Commands on Solaris
Solaris systems provide a number of “bin” directories underneath /usr for different kinds of commands. For example, /usr/bin holds most regular commands, /usr/java/bin has the Java commands, and so on. The bin directories are summarized in Table 2-1.
|
Directory |
Purpose |
|
/bin |
Symbolic link to /usr/bin |
|
/sbin |
System administration commands |
|
/usr/sbin |
More system administration commands |
|
/usr/bin |
Regular commands |
|
/usr/X/bin |
X Window System utilities |
|
/usr/ccs/bin |
C Compilation System: compiler-related programs |
|
/usr/dt/bin |
Common Desktop Environment (CDE) programs |
|
/usr/java/bin |
Java programs |
|
/usr/openwin/bin |
OpenWindows programs |
|
/usr/perl5/bin |
The perl command and its related programs |
|
/usr/sfw/bin |
Additional software from the Internet |
|
/usr/ucb |
Berkeley Unix compatibility programs |
|
/usr/xpg4/bin |
Standards-compliant versions of regular utilities |
|
/usr/xpg6/bin |
More standards compliant versions of regular utilities |
We strongly recommend placing /usr/xpg6/bin and /usr/xpg4/bin in your shell search path before the other directories. Solaris is unique among modern Unix systems in that the versions in /usr/bin continue to be the original System V Release 4 versions of the commands. Today, with just about every other system being POSIX compliant, you should set up your Solaris account to be POSIX compliant too! For Bash or the Korn shell, use something like this in your .profile
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access