Archive | Solaris RSS feed for this section

Solaris ps

2 Jul

Sometimes ps -ef doesn’t show you enough of the command line, use: ‘/usr/ucb/ps -auxwwweg’

Advertisements

Solaris – 32 bit or 64 bit

2 Nov

Can check what its running as:

isainfo -b

or

isainfo -v

Powered by ScribeFire.

grep on Solaris

23 Mar

Solaris doesn’t have recursive grep, instead you have to do something like:

 find . -name *.txt -exec grep  {} /dev/null  \\;

DTrace – monitor a file

12 Feb

To monitor who is opening a file on a Solaris box, try opensnoop – http://www.brendangregg.com/DTrace/opensnoop

Solaris Packages

4 Jun

See: http://www.sunfreeware.com/ for Sun OS/Solaris Packages.

Need to download package, e.g. zlib-1.1.4-sol25-sparc-local.gz

$> cd /tmp/zlib
## download package
$> gunzip zlib-1.1.4-sol25-sparc-local.gz
$> pkgadd -d zlib-1.1.4-sol25-sparc-local

Should add the packages properly!

To remove packages:
$> pkgrm

For information:
$> pkginfo -l