SUMMARY:SunOS to Solaris conversion

From: Robert Wolf (rwolf@dciem.dnd.ca)
Date: Tue Mar 21 1995 - 06:21:30 CST


>>>>>>>>>>>>>>>>>>>>>>> Original request >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Hello Sun-managers

   We are in the process of converting from SunOS 4.1.x to SunOS 5.x

   Is there a table anywhere showing the equivalent commands between
   the two o/s. I know there are the manuals but I am looking a table
   that would also include the less common commands.

       SunOS 4.1.x SunOs 5.x

       /usr/etc/pstat -T ???

>>>>>>>>>>>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Special thanks to the dozens to people who replied, there are simply
too many to mention but all deserve credit.

>>>>>>>>>>>>>>>>>>>>>>> Solutions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>

1) Try Janice Windsor's book "Solaris system administrator's guide", from
   SunSoft press. It includes a good listing towards the end of command
   conversions.

2) The Answerbook under Solaris has a Transition Guide that contains 50+
   page tables of exactly that, comparing not only commands, but system
   calls and library calls.

3) Whatnow and whatlist

4) The latest Solaris 2 FAQ, including an HTML version, and some other
   goodies can be obtained through ftp from ftp.fwi.uva.nl:/pub/solaris.
   Maintained-by Casper Dik <casper@fwi.uva.nl>.

5) Suite of tools, in the AdMigration-2.2a Toolkit, expedites migration
   ofrom Solaris 1.0 to Solaris 2.x

6) A transition file.

------------------------------------------------------------------------------
     Differences between BSD SunOS 4.1.X and System V Solaris 2.X 1995 Mar
     ------------------------------------------------------------

> b -sw <-> ok init s

     /dev/sd0a / <-> /dev/dsk/c0t3d0s0 /
     /dev/sd0b swap <-> /dev/dsk/c0t3d0s1 swap
     /dev/sd0d /var <-> /dev/dsk/c0t3d0s3 /var
     /dev/sd0e /home <-> /dev/dsk/c0t3d0s4 /home
     /dev/sd0f /??? <-> /dev/dsk/c0t3d0s5 /opt
     /dev/sd0g /usr <-> /dev/dsk/c0t3d0s6 /usr
     /dev/sd0h /usr/openwin <-> /dev/dsk/c0t3d0s7 /usr/openwin
     /dev/sr0 /cdrom <-> /vol/dev/dsk/c0t6/ /cdrom
     /dev/fd0 /pcnfs <-> /vol/dev/diskette0/ /floppy
     /dev/rst0 <-> /dev/rmt/0l 1st QIC150, 8200
     /dev/nrst0 <-> /dev/rmt/0ln
     /dev/rst1 <-> /dev/rmt/1l 2nd QIC150, 8200
     /dev/nrst1 <-> /dev/rmt/1ln
     /dev/rst8 <-> /dev/rmt/0m 1st QIC150, 8500
     /dev/nrst8 <-> /dev/rmt/0mn
     /dev/rst9 <-> /dev/rmt/1m 2nd QIC150, 8500
     /dev/nrst9 <-> /dev/rmt/1mn
     For more info: man st

     /usr/etc/halt <-> /sbin/init 0
     /usr/etc/reboot <-> /sbin/init 6
     /usr/etc/shutdown <-> /sbin/init s
                                                 - end up in single user mode
     /usr/etc/shutdown +5 <-> /usr/sbin/shutdown -y -g300
                                                 - shutdown in 5 minutes

     /etc/group XXX /etc/group (different entries)
     /etc/secuity/group.adjunct XXX no equivalent file
     /etc/passwd XXX /etc/group (different entries)
     /etc/secuity/passwd.adjunct XXX /etc/shadow (different layout)

     /usr/bin/hostname <-> /usr/bin/uname -n
     /usr/bin/arch <-> /usr/bin/uname -m
     /usr/bin/mach <-> /usr/bin/uname -p
     /usr/bin/hostid <-> /usr/sbin/sysdef -h

     /etc/hosts <-> /etc/inet/hosts
     /etc/host.equiv <-> /etc/host.equiv
     /etc/host.lpd <-> n/a
     /etc/hostname.le0 <-> /etc/nodename

     /etc/magic <-> /etc/magic
     /etc/ethers <-> /etc/ethers
     /etc/resolv.conf <-> /etc/resolv.conf

     /etc/fstab <-> /etc/vfstab
     /etc/exports <-> /etc/dfs/dfstab
     /etc/auto.master <-> /etc/auto_master
     /etc/auto.direct <-> /etc/auto_direct
     /etc/auto.mnt <-> /etc/auto_mnt

     /usr/etc/exportfs <-> /usr/sbin/share
     /usr/etc/exportfs -a <-> /usr/sbin/shareall
     /usr/etc/exportfs /??? <-> /usr/sbin/share -F nfs /???
     /usr/etc/exportfs -u /??? <-> /usr/sbin/unshare -F nfs /???

     /usr/etc/mount -a <-> /usr/sbin/mountall
     /usr/etc/mount -a -t nfs <-> /usr/sbin/mountall -F nfs
     /usr/etc/umount -a <-> /usr/sbin/umountall
     /usr/etc/umount -a -t nfs <-> /usr/sbin/umountall -F nfs
     /usr/etc/showmount <-> /usr/sbin/dfmounts

     mount /dev/sd0a / <-> mount /dev/dsk/c0t3d0s0 /
     mount /dev/sd0g /usr <-> mount /dev/dsk/c0t3d0s0 /usr
     mount -t nfs zeus:/usr /usr <-> mount -t nfs zeus:/usr /usr

     /usr/ucb/lpr FILE <-> /usr/bin/lp FILE
     /usr/ucb/lpr -P PRINTER FILE <-> /usr/bin/lp -d PRINTER FILE

     /usr/ucb/lpq -P PRINTER /usr/bin/lpstat -d PRINTER
                  OR <-> /usr/bin/lpstat -o PRINTER
     /usr/etc/lpc status PRINTER /usr/bin/lpstat -u USER

     /usr/ucb/lprm -P PRINTER JOB# <-> /usr/bin/cancel PRINTER-JOB#
                                            /usr/bin/cancel -u USER PRINTER

     /usr/etc/lpc disable PRINTER <-> /usr/sbin/reject PRINTER
     /usr/etc/lpc stop PRINTER <-> /usr/bin/disable PRINTER

     /usr/etc/lpc enable PRINTER <-> /usr/sbin/accept PRINTER
     /usr/etc/lpc start PRINTER <-> /usr/bin/enable PRINTER
     /usr/etc/lpc restart PRINTER

         no BSD equivalent <-> /usr/bin/lpmove PRINTER-JOB# NEW_PRINTER

     ps -aux | grep lpd ... kill <-> /etc/init.d/lp stop

     /usr/lib/lpd <-> /etc/init.d/lp start

     vi /etc/printcap <-> /usr/sbin/lpadmin -x PRINTER
     - remove unwanted printer

     /usr/bin/ps -aux | grep lpd <-> /usr/sbin/lpshut
     /usr/bin/kill LPD_PIDS

     /usr/lib/lpd <-> /usr/lib/lp/lpsched

     default printer = $PRINTER <-> default printer = $LPDEST

     /usr/bin/ps -aux | more <-> /usr/bin/ps -fe | more
     /usr/bin/ps -aux | grep USER <-> /usr/bin/ps -fu USER
     /usr/bin/ps -tcon <-> /usr/bin/ps -t console
     /usr/bin/ps -tp1 <-> /usr/bin/ps -t pts/1
     /usr/bin/ps -t01 <-> /usr/bin/ps -t ???

     /usr/bin/df <-> /usr/sbin/df -k

     /usr/etc/dump <-> /usr/sbin/ufsdump
     /usr/etc/restore <-> /usr/sbin/ufsrestore

     /usr/lib/Profile <-> /etc/skel/local.profile
     /usr/lib/Cshrc <-> /etc/skel/local.cshrc
     /usr/lib/Login <-> /etc/skel/local.login

     system-wide startup files: system-wide startup files:
     <none> (sh users) /etc/profile (sh & ksh users)
     <none> (csh users) /etc/.login (csh users)

     user startup files: user startup files:
     $HOME/.profile (sh users) $HOME/.profile (sh & ksh users)
     $HOME/.cshrc (csh users) $HOME/.cshrc (csh users)
     $HOME/.login (csh users) $HOME/.login (csh users)
                                            $HOME/$ENV (ksh users)
                                            $ENV is usually ~/.kshrc

     printenv <-> env

     ~/.Xdefaults <-> ~/.OWdefaults
     ~/.openwin-menu - syntax is the same but must use the lastest
                            '/usr/openwin/lib/open-menu' then add changes.
     ~/.openwin-init - syntax is the same but very different
                            rename your old .openwin-init file then do a
                            (save workspace) command then add changes to
                            new .openwin-init.
     default printer = $PRINTER <-> default printer = $LPDEST

     /usr/etc/devinfo <-> /usr/sbin/prtconf

     /usr/bin/mail <-> /usr/bin/mail
     /usr/ucb/mail <-> /usr/bin/mailx
     /var/spool/mail <-> /var/mail
     /usr/spool/mail <-> /usr/mail

     /var/spool/cron/crontabs/* <-> /var/spool/cron/crontabs/*
         Sunday=7 Sunday=0
------------------------------------------------------------------------------
Robert J Wolf, Sun System Admin. DCIEM, CFB Toronto
Robert.Wolf@dciem.dnd.ca PO Box 2000 1133 Sheppard Avenue West
                                    North York (Toronto), Ont., Canada M3M 3B9
Internet: 131.136.64.3 Phone: (416)635-2073 FAX: (416)635-2104
"Capitalism with environmental ethics will benefit the entire world."



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:19 CDT