Unix Commands On Different OS's
Unix Commands On Different OS's
Unix Commands On Different OS's
/
Root filesystem / {/dev/hd4} / {/dev/ad0s1a} {/dev/vg00/lvol1} / {/dev/sda1} / {/dev/vx/dsk/rootvol}
/export/home
/home
Home Directory /home {/dev/hd1} {/dev/vg00/lvol4} /dev/vx/dsk/home}
/tmp
/tmp
/tmp {/dev/hd3} {/dev/vg00/lvol6} /dev/vx/dsk/swapvol}
/usr
/usr {/dev/hd2} /usr {/dev/ad0s1f} {/dev/vg00/lvol7} /usr
/var
/var {/dev/hd9var} /var {/dev/ad0s1e} {/dev/vg00/lvol8} /var
Sample configuration
files - /usr/newconfig
User Accounts AIX FreeBSD HP-UX LINUX(RedHat) Solaris
/etc/passwd /etc/passwd /etc/passwd /etc/passwd /etc/passwd
Password files /etc/security/passwd /etc/master.passwd /tcb/files/auth/r/root /etc/shadow /etc/shadow
/etc/group /etc/group
Groups file /etc/security/group /etc/group /etc/logingroup /etc/group /etc/group
mount /dev/c0t0d0s0
Start Limited Shell ISL>hpux -iS linux S /tmp/a
vi /etc/security/passwd
{grub}
c
kernel vmlinuz-2.4.9-
13 single
ro root=/dev/hda8
initrd /initrd-2.4.9-
13.img
boot
Recover root password passwd root
Create new user mkuser adduser useradd useradd useradd
Delete user rmuser rmuser userdel userdel userdel
List users lsuser -f ALL logins logins
Modify user account chuser -a usermod usermod usermod
odmget -q
"attribute=num and
uniquetype=pty/pty/pty" rebuild your kernel with
PdAt | sed "s/0-64/0- these new values
512/" | NPTY=# cd /dev {/etc/system}
odmchange -q
"attribute=num and
uniquetype=pty/pty/pty" set pt_cnt = #
-o PdAt NSTRPY=# ./MAKEDEV -v pty {SYSV}
set npty = # {BSD}
chdev -l pty0
-anum=256 -P reboot
reboot {/etc/iu.ap}
176 {BSD}
Display volume group lsvg -l rootvg vgdisplay -v vg00 vgdisplay -v vxprint -l -g rootdg
/
usr/lbin/sysadm/system_
vi KERNEL prep -v -s system make mrproper reboot
config KERNEL vi system make menuconfig
mv /stand/build/system
system make modules_install
kmupdate
/stand/build/vmunix_test
cp
arch/i386/boot/bzIm
age /boot/vmlinuz-
2.2.16
mkinitrd /boot/initrd-
2.2.16.img 2.2.16
vi /etc/lilo.conf
lilo
Reconfigure the kernel chdev -l sys0 -a
List modules genkex kldstat kmadmin -s lsmod modinfo
Load module kldload kmadmin -L insmod modload
Unload module kldunload kmadmin -U rmmod modunload
Initialize system install_assist /stand/sysinstall set_parms initial netconf sys-unconfig
grep -i Physical
/var/adm/syslog/syslog.l
Physical RAM bootinfo -r sysctl hw.physmem og free prtconf
kernel vmlinuz-2.4.9-
13 single
ro root=/dev/hda8
initrd /initrd-2.4.9-
13.img
Boot single user ok boot -s boot ok boot -s
>boot
Interact with IPL ? Y
Maintenance mode ok boot -as ISL>hpux -lm ok boot -as
Interrupt Key control-B Stop-A
Return to console co ok go
/etc/environment /etc/TIMEZONE
Timezone Management /etc/profile /etc/localtime /etc/TIMEZONE /etc/sysconfig/clock /etc/default/init
/
/etc/rc.conf etc/rc.config.d/netdaemo
/etc/ntp.conf {xntpd_enable="YES"} ns /etc/ntp.conf /etc/inet/ntp.conf
NTP Daemon
NTP Daemon startsrc -s xntpd /etc/rc.network /sbin/init.d/xntpd /etc/rc.d/init.d/xntpd /etc/init.d/xntpd
Software AIX HP-UX LINUX(RedHat) SOLARIS
Install Software installp -a pkg_add swinstall rpm -i package pkgadd
Uninstall software installp -u pkg_delete swremove rpm -e package pkgrm
List installed software lslpp -L all pkg_info -a swlist rpm -qa pkginfo
Verify installed pkginfo -i
software lppchk -v swlist -l fileset -a state rpm -V package pkginfo -p
List all files lslpp -f fileset pkg_info -L package swlist -l file fileset rpm -ql package pkgchk -l package
swlist -l patch
List installed patches instfix -i what /stand/vmunix patchadd -p
Package owner lslpp -w path swlist -l file | grep path rpm -qf file pkgchk -l -p path
SW Directory /usr/lpp /var/db/pkg /var/adm/sw/ /var/lib/rpm /var/sadm
Devices AIX FreeBSD HP-UX LINUX(RedHat) SOLARIS
Devices /dev /dev /dev /dev /devices
drvconfig
devlinks
disks
Install devices for tapes
attached peripherals cfgmgr -v /dev/MAKEDEV insf -e /dev/MAKEDEV ports
Remove device rmdev -l rmsf rem_drv
Device drivers lscfg lsdev prtconf -D
CPU lsdev -Cc processor sysctl hw.model ioscan -fnC processor cat /proc/cpuinfo psrinfo -v
List Terminal lsdev -Cc tty ioscan -fnC tty pmadm -l
/usr/platform/`uname
lspci -m`/
pnpdump sbin/prtdiag
ok test-all
Online Manual AIX 4.3 Books FreeBSD Hand Book HP-UX 11.00 CollectionLinux Documentation Project
Solaris 7 Documentation
Technical Support RS/6000 TechSupport IT Resource Center Red Hat support SunSolve
Phone Number 1-800-CALL-AIX 1-800-633-3600 1-888-REDHAT1 1-800-USA-4SUN
Free Software Bull FreeBSD Primary Site HP-UX Ports Linux Software Map Sun Freeware
Certification www.ibm.com education.hp.com RHCE suned.sun.com
Tru64
/ {/dev/rz0a}
/usr {/dev/rz0g}
Tru64
/etc/passwd
/etc/group
65535
/etc/securettys
{ttyp1}
65534
65534
>>>boot -fl s
lsmbstartup
/sbin/bcheckrc
passwd root
useradd
userdel
usermod
Tru64
hostid
sysman
top
/usr/opt/svr4/bin/sar
vmstat
iostat
uerf -R -o full
4TB
/dev/rz0b
raw
swapon -s
swapon -a
Tru64
/usr/spool/lpd
/sbin/init.d/lpd stop
/sbin/init.d/lpd start
lp
lpr
lpstat
cancel
lprm
lprsetup
lprsetup
export PRINTER="lp"
Tru64
/etc/rc.config
/etc/hosts
/etc/svc.conf
routed
ifconfig -a
/etc/issue
cd /dev
./MAKEDEV PTY_1
8192
rsh
/usr/sbin/ypbind
Tru64
/etc/exports
/var/adm/mountdtab
128 GB {<= 3.2G}
512 GB {>= 4.0}
16 TB {advfs}
Tru64
/etc/fstab
df -k
file /dev/rrz0c
disklabel -p rz0
sub disk
Volume
Plex
disk group
advfs
/dev/vol/rootdg
volprint -l -g rootdg
voldiskadd
volprint -dl
voldg rmdisk
volassist move
voldg init
voldg deport
voldg import
voledit set
volprint -vl
volassist make
volassist growto
volassist shrinkto
voledit -g rootdg -rf rm
vol1
volassist make vol
100mb mirror=true
/usr/sys/bin/btcreate
vdump
vrestore
Tru64
/sbin/init.d
/vmunix
sysconfig
dxkerneltuner
doconfig
netsetup
64
kdbx
trace
uname -p
sizer -v
who -r
control-P
/etc/svid3_tz
timezone
rcmgr set XNTPD_CO
NF YES
/sbin/init.d/xntpd
Tru64
setld -l
setld -d
setld -i
setld -v
setld -i package
dupatch -track -type
patch
/var/adm/smlogs
Tru64
/dev
scu scan edt
scsimgr -scan_all
psrinfo -v
/dev/rz0c
/dev/rz3c
cdfs
/dev/rmt0
/dev/nrmt0
/dev/fd0c
Tru64
Tru64 FAQ
Tru64 Documents