Miscellaneous Solaris Notes

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

1.) Show inode usage:

df -F ufs -o i

2.) find all sub directories under .... with tmp as name

find /opt/apps/catalog/catalogs -type d -name tmp

3.) show list of available packages for the system

pkg-get -D

4.) install the vim package on the system

pkg-get -i vim

5.) where do packages go?

/opt/csw

6.) recursive grep on solaris, search all files for a string

find . -type f -print | xargs grep -il 'string'