Friday, April 20, 2012

RHEL-to-Solaris compare

Shutdown
RHEL
Solaris
shutdown -h now (or) poweroff
shutdown -y -g0 -i5
reboot
reboot (or) shutdown -y -g0 -i6
halt
halt
Kernel
RHEL
Solaris
/sbin/lsmod
modinfo
/sbin/insmod
modload
/sbin/rmmod
modunload
scanpci
/usr/X11/bin/scanpci (or) prtconf -v
Printing
RHEL
Solaris
lp (or) lpr
lp (or /usr/ucb/lpr)
lpstat (or) lpq
lpstat (or /usr/ucb/lpq)
Services
RHEL
Solaris
/sbin/service --status-all
svcs -a
/sbin/service sendmail stop
svcadm disable sendmail
/sbin/service sendmail start
svcadm enable sendmail
/sbin/service sendmail status
svcs sendmail
/sbin/chkconfig --list
svcs -a
/sbin/chkconfig --add /etc/rc3.d/f00
svccfg import f00.xml
/sbin/chkconfig sendmail on
svcadm enable sendmail
Monitoring
RHEL
Solaris
top
prstat
cat /proc/cpuinfo
psrinfo -v
cat /proc/meminfo
prtconf
NFS
RHEL
Solaris
exportfs
exportfs (or) share
(edit /etc/exports)
share /home
(edit /etc/exports)
unshare /home
Networking
RHEL
Solaris
/sbin/mii-tool
ndd (or) /sbin/dladm show-dev
ifconfig
ifconfig
/sbin/ethtool
ndd
/sbin/dhclient
dhcpagent
iptables
ipfilter
Storage
RHEL
Solaris
fdisk
fdisk (and) format
parted
format
mkfs -t ext3 /dev/hda1
mkfs -F ufs /dev/rdsk/c0t0d0s0
cdrecord dev=2,0 f00.iso
cdrw -i f00.iso
tar xfvj f00.tar.bz2
/usr/sfw/bin/gtar xfvj f00.tar.bz2
lvm/pv*/lv*/vg*
meta*
Dev
RHEL
Solaris
(edit /etc/ld.so.conf)
crle
gcc
/usr/sfw/bin/gcc
ld
/usr/ccs/bin/ld

1 comment: