100% found this document useful (1 vote)
233 views2 pages

RosettaStone For UNIX

This document provides a Rosetta Stone for translating common system administration tasks and terminology between different Unix variants. It lists activities such as configuring hardware, partitioning disks, and installing software. For each activity it shows the common commands on Linux, Solaris, HP-UX, AIX, and other operating systems to perform equivalent tasks. Additional sections provide information on compilers, mailing lists, user groups and vendor documentation for each platform.

Uploaded by

Dani Elmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
233 views2 pages

RosettaStone For UNIX

This document provides a Rosetta Stone for translating common system administration tasks and terminology between different Unix variants. It lists activities such as configuring hardware, partitioning disks, and installing software. For each activity it shows the common commands on Linux, Solaris, HP-UX, AIX, and other operating systems to perform equivalent tasks. Additional sections provide information on compilers, mailing lists, user groups and vendor documentation for each platform.

Uploaded by

Dani Elmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Rosetta Stone for Unix

A Sysadmin's Unixersal Translator (ROSETTA STONE) OR What do they call that in this world?
OPERATING SYSTEM Contributions and corrections gratefully accepted. Please help us fill in the blanks. New "activities" are welcome, too!
framed version. PDF version. (Print the PDF version with landscape orientation for best result.) Based on Pat Wilson's version.
OS versions in parentheses; e.g. 10+ means version 10 and greater; 9- means version 9 and previous. $=extra cost
Linux
ACTIVITY

list hardware
configuration

AIX

lscfg
lsattr

DG-UX

FreeBSD

smit
smitty

sysadm

read a disk label

lspv -l

admpdisk -o list
admvdisk -o list

whole disk in
partition

N/A

label a disk

mkvg

dmesg (if you're lucky)


/proc/cpuinfo
/proc/pci

setboot
bootadmin (at boot PROM)
stm

nvram

hwclock

/stand/sysinstall

sam

/usr/sysadm/bin/sysmgr (6.3+) (rh) linuxconf

disklabel -r

diskinfo
pvdisplay

prtvtoc

fdisk
disklabel -wr
sysinstall
fdisk
sysinstall

fdisk -l

dvhtool

dmesg
cat /kern/msgbuf

checklist

administrative GUI
read a disk label

whole disk in
partition

disklabel -wr

disklabel -wr

format

format

disklabel -wr

chpt -a

label a disk

format

disklabel -e

chpt -p

partition a disk

pstat -s

swapon -s

check swap space

/vmunix

/vmunix

kernel

cat /etc/system
/usr/sbin/ndd

sysconfig
dxkerneltuner

show/set kernel
parameters

/sbin/runlevel

who -r

insmod

who -r
(3.2.*) scu scan edt
(4.0) scsimgr -scan_bus
bus=BUSNUM; disklabel
-rw rzXX label (for disks)

show runlevel

devfsadm. pre-Solaris 7, use:


drvconfig; devlinks; {disks,
tapes, ports}

cfdisk
fdisk
e2label

fx -x

fdisk

disklabel

swapinfo

swap -s
swap -l

cat /proc/meminfo
free

swapctl

kernel

/unix

/dgux

/kernel

/hpux (9)
/stand/vmunix (10+)

/unix

/boot/vmlinuz

/netbsd

/boot/kernel.conf

sam
sysdef
kmtune (11+)

systune

/proc/*
/proc/sys/*

startup scripts

/etc/rc*

/etc/rc*

/etc/rc*
/usr/local/etc/rc.d/

/etc/rc* (9)
/sbin/rc* (10+)

/etc/rc*

/etc/rc* (but may vary)

"normal"
filesystem

jfs

dg/ux

ufs

hfs

efs, xfs

ext2

volume based
filesystem

jfs

ccd
vinum

jfs (vxfs)

xlv, xvm, xfs

file system
description

/etc/filesystems

/etc/fstab

/etc/checklist
(9)
/etc/fstab
(10+)

/etc/fstab

volume
manipulation

smitty vg
smitty lvm
smitty jfs

vinum

/usr/sbin/vg* lv* pv*


extendfs

xlv_mgr
xvm

prealloc

mkfile

create non-0-length
empty file

show/set
EEPROM/NVRAM
values

consvar (DU
4.0D+)

sam

/etc/fstab

list hardware
configuration

d (on i386)
c (everything else)

admswap -o list -buv


swapinfo
dg_sysreport -p freeswap

insf -H hwpath (where


hwpath is given by ioscan)

uerf -R -o full (if


you're lucky)

chpt -q

admpdisk

who -r

eeprom

uerf -R -o full (if you're


lucky)

ACTIVITY

disklabel -r

lsps -a

add device without


cfgmgr -v
reboot

openprom (on
OpenFirmware
architectures)

dmesg (if you're lucky)

Ultrix

dkinfo

crfs

show runlevel

dmesg

Tru64 (Digital Unix,


OSF/1)

SunOS

fdisk -r OR disklabel -rl prtvtoc

check swap space

/usr/samples/kernel/vmtune
(installed with the
bos.adt.samples fileset)
/usr/sbin/no
(network-related)
who -r

Solaris
prtconf -v
/usr/platform/`uname
-i`/sbin/prtdiag -v
psrinfo -v
isainfo -v
dmesg

solstice
admintool

partition a disk

show/set kernel
parameters

OpenBSD

disklabel -r

10
pvcreate

NetBSD

(rh) = Red Hat, Mandrake, Suse,...


(deb) = Debian, Corel, Storm,...

hinv

c
admpdisk

IRIX

ioscan
dmesg (if you're lucky)
adb
stm (from the SupportPlus
CDROM)

dg_sysreport -g hardware dmesg

show/set
EEPROM/NVRAM
values
administrative GUI

HP-UX

/etc/fstab

format
fdisk -e OR disklabel -E
fmthard
swap -s
swapctl
swap -l
/kernel/genunix
/platform/`uname -m`/
/bsd
kernel/unix
/platform/`uname -m`/
kernel/sparcv9/unix (7+)

/etc/boot.conf

add device without


reboot

/etc/rc*

/etc/rc*

/etc/rc*

/etc/rc*

/sbin/rc*

/etc/rc*

startup scripts

ffs (was ufs)

ffs (was ufs)

ufs

4.2

ufs

ufs

"normal"
filesystem

ccd, raidframe

ccd

Solstice DiskSuite
Veritas Volume Manager

/etc/fstab

/etc/fstab

/etc/vfstab

Advfs
LSM

/etc/fstab

/etc/fstab

volume based
filesystem

/etc/fstab

file system
description

/opt/VRTSvxva/bin/vxva
(Veritas)
/usr/opt/SUNWmd/
sbin/metatool
(DiskSuite)

AdvFS: mkfdmn, mkfset,


addvol, showfdmn
LSM: volassist or volmake,
volume, volplex and volsd,
volprint

volume
manipulation

dd if=/dev/zero
of=filename bs=1024k
count=desired

mkfile

dd if=/dev/zero of=filename
bs=1024k count=desired

create non-0-length
empty file

/etc/exports

/etc/dfs/dfstab

/etc/exports

/etc/exports

NFS share
definitions

share
shareall

exportfs -a

/sbin/init.d/nfs start;
/sbin/init.d/nfsmount start

NFS share
command

NFS share
definitions

/etc/exports

/etc/exports

/etc/exports

/etc/exports

/etc/exports

/etc/exports

NFS share
command

/usr/sbin/exportfs -a

kill -s HUP `cat


/var/run/mountd.pid`

exportfs -a

exportfs

exportfs -a

kill -s HUP `cat /var/run/mountd.pid`

mount CDROM

mount /cdrom
smitty cdrom

encrypted
passwords in

/etc/security/passwd

/etc/shadow

/etc/master.passwd

/etc/passwd (not Trusted)


/secure/etc/passwd (Trusted
/etc/shadow
9)
/tcb/files/auth/
(10+)

/etc/shadow (may vary)

/etc/master.passwd (/etc/pwd.db)

/etc/master.passwd
(/etc/pwd.db)

/etc/shadow

/tcb/files/auth (only with


Enhanced Security)

allow/deny root
logins

/etc/security/user

/etc/default/login

/etc/login.access;
/etc/ttys

/etc/securetty

/etc/default/login

/etc/securetty

/etc/ttys

/etc/ttys

/etc/default/login

/etc/securettys

allow/deny root
logins

/var/adm/SYSLOG

/var/log/syslog
/var/log/messages

/var/log/messages

/var/log/messages

/var/log/syslog

/var/adm/syslog

default syslog

dmesg

prtdiag

default syslog

/var/adm/syslog

system error
reporting tool

errpt

show installed
software

lslpp -L

/etc/init.d/vold start;
volcheck or
mount -F hsfs /dev/sr0
/cdrom

pfs_mountd
pfsd
pfs_mount

mount CDROM

/etc/shadow

encrypted
passwords in

/var/log/messages

/var/adm/syslog/syslog.log

admsyslog -o report

dmesg

dmesg
sysdiag (9 and early10)
stm/cstm/mstm/xstm
(10.20+)

sysmon

dmesg

dmesg
cat /kern/msgbuf

pkginfo

pkg_info

rmfn, what (HP-UX 9)


swlist (HP-UX 10+)

versions -Ib

(rh) rpm -a -i
(rh) rpm -qa
(deb) dselect
(deb) dpkg -l

pkginfo

pkginfo

pkginfo
prodreg
admintool

setld -i

show installed
software

/stand/sysinstall
/usr/ports make

swinstall

inst
swmgr

(rh) rpm -hiv


(deb) dselect
(deb) apt-get install pkg
(deb) dpkg -i

pkg_add
/usr/pkgsrc && make

pkg_add
/usr/ports && make

pkgadd

setld -l

add software

versions -b | grep patch (6.4-)


uname -R (6.5+)

(rh) rpm -q
(deb) dpkg -s

cat /kern/version

dupatch
setld -i | grep patchname

show patch level

cvs

cvs/CTM

setld -i
dupatch

patch tool

ktrace

ktrace
ptrace

showrev -p
prodreg (2.6+)
installpatch (2.5.1-)
patchadd (2.6+)
pkgadd
truss
sotruss

trace

tracing utility

smitty install_all
add software

/usr/lib/instl/sm_inst
installp_cmd -a -d 'device'
'-c' '-N' '-g' '-X'

show patch level

instfix -ivq

swlist -l product | grep


someStringOfInterest

patch tool

installp
smitty update_all

cvsup

update (9)
swinstall (10+)

inst

(deb) apt-get update


(deb) apt-get upgrade

tracing utility

trace
syscalls

ktrace

trace (freeware)
tusc (11+, freeware)

par

strace

dg_sysreport -p patches

http://home.earthlink.net/~bhami/rosetta.html (1 of 2) [1/19/2001 10:45:01 PM]

dmesg

trace

uerf

uerf

system error
reporting tool

Rosetta Stone for Unix


show network
interface info

ifconfig -a
no -a

change network
address
ping one packet

ping -c 1 hostname

ping -s -c 1 hostname

ifconfig -A

lanadmin
landiag
lanscan
netstat -in

ifconfig -a
netstat -ia

edit /etc/rc.conf (option


ifconfig_interfacename)

/sbin/set_parms initial

edit: /etc/{hosts, sysid,


edit: /etc/hosts, /etc/sysconfig/network, edit /etc/ifconfig.interface
resolv.conf, TIMEZONE},
/etc/config/{static-route.options, /etc/sysconfig/network-scripts/ifcfg-eth0 dhclient
ifconfig-1.options}; reboot

ping -c 1 hostname

ping hostname 10 1 (9)


ping hostname -n 1 (10+)

ping -c 1 hostname

ping -c 1 hostname

/etc/rc.config.d/netconf

/etc/config/
static-route.options

(rh) /etc/sysconfig/network
(rh) /etc/sysconfig/static-routes
(deb) /etc/init.d/network
(deb) /etc/network

/opt/softbench/bin/cc ($)
/bin/cc (9)
/usr/bin/cc (10+; not ANSI;
kernel builder only)

/opt/MIPSpro/
bin/cc ($)
/usr/bin/cc

gcc

/usr/bin/cc

http://hpux.cae.wisc.edu/

freeware.sgi.com
www.sgi.com/fun

http://www.linux.org/
linux.tucows.com

ftp://ftp.netbsd.org/pub/NetBSD/packages/

www.linux.org/
help/lists.html

www.netbsd.org/
MailingLists

www.openbsd.org/
mail.html

alpha-osf-man
sun-managers@sunmanagers sun-managers@sunmanagers
[email protected]
.ececs.uc.edu (majordomo) .ececs.uc.edu (majordomo)
(majordomo)

decstation-man
[email protected]
(majordomo)

mailing list

www.netbsd.org/
MailingLists

www.openbsd.org/
mail.html

www.latech.
edu/sunman.html

www.latech.
edu/sunman.html

www-archive.
ornl.gov:8000/

www-archive.
ornl. gov:8000/

mailing list
archives

comp.unix.bsd.
netbsd.misc

comp.unix.bsd.
openbsd.misc

comp.sys.sun.
admin, comp.unix.solaris

comp.sys.sun
admin

comp.sys.dec,
comp.unix.osf.osf1

comp.unix.ultrix

newsgroup(s)

edit /etc/rc.conf (option


defaultrouter)

route definitions

C compiler

/usr/ibmcxx/bin/cc

precompiled
binaries of
GPLware and
freeware

aixpdslib.seas.ucla.edu/
aixpdslib.html
www-frec.bull.com/
docs/download.htm

mailing list

AIX-L@pucc.
princeton.edu
(LISTSERV)

mailing list
archives

www.marist.
edu/htbin/wlvindex?
ADSM-L

newsgroup(s)

comp.unix.aix

/usr/sde/default/usr/bin/cc /usr/bin/cc (gcc)

ftp://ftp.freebsd.org/.0/
FreeBSD/ports/i386/
packages-4.0-release
www.freebsd.org/
handbook/
eresources.html
#ERESOURCES-MAIL
www.freebsd.
org/ search.html#
mailinglists
comp.unix.bsd.
freebsd.misc

user groups
magazines
vendor home page

www.dg.com/products/
http://www.rs6000.ibm.com/
html/dg_ux.html

vendor docs and


patches

http://techsupport.services.
ibm.com/support/rs6000

AIX

hpux-admin@
dutchworks.nl
(majordomo)

comp.sys.hp.hpux

800-633-3600
DG-UX

FreeBSD

ifconfig -a

www.dutch
works.nl/
htbin/hpsysadmin
comp.sys.sgi.admin

http://www.interex.org/
http://www.daemonnews.com/ http://www.hpchronicle.com/
www.unixsolutions.hp.com/ www.sgi.com/software/
http://www.freebsd.org/
products/hpux/
software.html#IRIX
techpubs.sgi.com
www.freebsd.org/handbook
docs.hp.com
www.sgi.com/
www.freebsd.org/releases/
itrc.hp.com
support/patch_intro.html
4.0R/errata.html
support.sgi.com

AIX: 800-237-5511
vendor phone (US) IBM hardware:
800-426-7378
ACTIVITY

/sbin/ifconfig

HP-UX

comp.os.linux.* (esp .answers)


http://www.deadly.org/
http://www.linuxjournal.com/
http://www.linux.org/
http://www.redhat.com/
http://www.linuxdoc.org/
rpmfind.net/linux/RPM

ping -c 1 hostname

ifconfig -A

ndd
ifconfig -a
netstat -in

ifconfig -a
netstat -in

show network
interface info

edit /etc/hostname.driver

edit /etc/resolv.conf; edit


/etc/hostname.*; (possibly)
/usr/sbin/sys-unconfig;
reboot

netsetup

change IP

ping -c 1 hostname

See also Heiner Steven's AWK dialects page at http://www.oase-shareware.org/shell//articles/awkcompat.html


Last updated 2001.01.19 Bruce Hamilton [email protected]

http://home.earthlink.net/~bhami/rosetta.html (2 of 2) [1/19/2001 10:45:01 PM]

ping hostname packetsize 1

ping one packet

/etc/defaultrouter
/etc/routes

route definitions

/usr/bin/cc

C compiler

www.tru64unix.compaq.com/
demos

precompiled
binaries of
GPLware and
freeware

/etc/notrouter

/usr/bin/cc

/opt/SUNWspro/
bin/cc ($)

/usr/bin/cc

http://www.sunfreeware.com/

http://www.daemonnews.com/

user groups
magazines
www.supelec.fr/decus/
http://www.unix.digital.com/
vendor home page
faq/faq-ultrix.html

www.sunworld.com/

http://www.netbsd.org/

http://www.openbsd.org/ http://www.sun.com/solaris/

www.netbsd.org/
Security

www.openbsd.org/
errata.html

800-800-4SGI
IRIX

ping hostname packetsize 1

/usr/sbin/ping -c 1

docs.sun.com
sunsolve.sun.com

vendor docs and


patches

800-USA-4SUN
Linux

NetBSD

OpenBSD

Solaris

vendor phone
SunOS

Tru64 (Digital Unix,


OSF/1)

Ultrix

ACTIVITY

You might also like