I am absolutely convinced that no wealth in the world can help humanity forward, even in the hands of the most devoted worker. The example of great and pure individuals is the only thing that can lead us to noble thoughts and deeds. Money only appeals to selfishness and irresistibly invites abuse. Can anyone imagine Moses, Jesus or Ghandi armed with the money-bags of Carnegie ?
—Albert Einstein
Marc's realm

From Linux to OpenSolaris

I'd like to share some lessons I've learned with OpenSolaris. Being a long-time Linux user (happily using it since 1999 and counting) I found that some commands don't exist but have other equivalents or that they don't support the options a Linux user is used to. This list is work in progress, if you some more just tell me.
<!-- break -->

Linux Command OpenSolaris Command
chkconfig/insserv svcadm (svcs -a to list the services and their states)
free vmstat (hard to interpret, not really equivalent to free but all I could find)
ps ax ps -Af (BSD syntax not supported)
sudo pfexec
tar -xzf foo.tar.gz gzcat foo.tar.gz | tar xf - (same thing with .bz2 and bzcat
top prstat
/proc/partitions (file) no equivalent, but format shows a list when called without argument
/proc/cpuinfo (file) psrinfo (but doesn't show as much information, use isainfo -bv)

Other useful command

  • cfgadm: Displays devices.
  • prtconf: Displays some system/device informations.
  • prtdiag: Displays infos about your mainboard.
  • sharemgr show -vp: Shows exported shares (e.g. NFS)

Credits

Thanks to Ty Morton for letting me know about cfgadm and sharemgr.