Quotation

I hear and I forget. I see and I remember. I do and I understand.
—Confucius
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.

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.