You are on page 1of 3

1 of 4

Unix Commands on Different OS's [ID 293561.1] Modified 16-JUL-2010 Type BULLETIN Status PUBLISHED

Unix Commands on Different OS's


General Commands Unique host ID Administrator Performance monitor System activity reporter Virtual Memory statistics I/O statistics Error logs Physical RAM Shared Memory Process Data Space Swap device Swap file type Display swap size Activate Swap TCP/IP Network IP configuration Hosts IP addresses Name service switch Network parameters Routing daemon NIC Configurations Secondary IP Address Login prompt hostid smit top monitor sar vmstat iostat alog -o -t boot errpt 1TB 2.75GB 2GB /dev/hd6 /etc/swapspaces lsps -a swapon -a AIX lsattr -E -l inet0 /etc/rc.conf /dev/ad0s1b swap swapinfo swapon -a top sa vmstat iostat dmesg AIX FreeBSD HP-UX uname -i sam top glance sar vmstat iostat dmesg 4TB 8TB 4GB /dev/vg00/lvol2 swap swapinfo -a swapon -a HP-UX /etc/rc.config.d /netconf /etc/hosts LINUX(RedHat) hostid linuxconf top sar {sysstat} vmstat iostat {sysstat} dmesg 64 GB {>2.3.24} sysctl kernel.shmmax 900 MB /dev/sda2 partition type 82 free swapon -a LINUX(RedHat) /etc/sysconfig /network-scripts/ /etc/hosts /dev/vx /dsk/swapvol swap swap -l swap -a Solaris /dev/rz0b raw swapon -s swapon -a Tru64 Solaris hostid admintool top sar vmstat iostat dmesg 16TB hostid sysman top /usr/opt/svr4/bin/sar vmstat iostat uerf -R -o full 4TB Tru64

/etc/hostname.* /etc/inet/* /etc/rc.config /etc/defaultrouter /etc/inet/hosts /etc/hosts

/etc/hosts /etc/netsvc.conf no -a gated ifconfig -a ifconfig en0 alias IP HERALD @ /etc/security /login.cfg odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64 /0-512/" | odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt chdev -l pty0 -anum=256 -P reboot

/etc/hosts /etc/host.conf sysctl routed ifconfig -a ifconfig xl0 alias IP

/etc/nsswitch.conf /etc/nsswitch.conf /etc/nsswitch.conf /etc/svc.conf ndd -h gated lanscan -v ifconfig lan0:1 IP telnetd -b /etc/issue rebuild your kernel with these new values NPTY=# NSTRPY=# reboot insf -d ptys -n # insf -d ptym -n # insf -d pts -s # -e -v cd /dev ./MAKEDEV -v pty sysctl -a | grep net routed ifconfig -a ndd /dev/[tcp|ip] ? in.routed ifconfig -a routed ifconfig -a

modprobe ip_alias ifconfig hme0:1 IP ifconfig ln0 alias ifconfig eth0:1 IP up /etc/issue BANNER @ /etc/default /telnetd {/etc/system} set pt_cnt = # {SYSV} set npty = # {BSD} {/etc/iu.ap} ptsl 0 # ldterm ttcompat halt boot -r cd /dev ./MAKEDEV PTY_1 /etc/issue

Increase the # of pseudoterminals

Maximum # of ptys

512

{MAXUSERS}

256

176 {BSD} 3000 {SYSV} rsh /usr/lib/netsvc /yp/ypbind Solaris /etc/dfs/dfstab /etc/dfs/sharetab /etc/rmtab

8192

Remote Shell YP/NIS service binder System Files NFS exported NFS Client mounted directories Max File System

remsh rsh /usr/lib/netsvc /yp/ypbind AIX /etc/exports

rsh /usr/sbin/ypbind FreeBSD /etc/exports

remsh /usr/lib/netsvc /yp/ypbind HP-UX /etc/exports

rsh /sbin/ypbind LINUX(RedHat) /etc/exports

rsh /usr/sbin/ypbind Tru64 /etc/exports

/etc/xtab

/etc/xtab

/var/lib/nfs/xtab

/var/adm/mountdtab 128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs}

128 GB

128 GB

2 TB

1 TB 8000 TB {vxfs}

2 of 4

Max File Size

64 GB

128 GB

2 GB {512B block size} 8192 GB {8KB block size}

1 TB 2 GB {=<2.5.1}

128 GB {<= 3.2G} 512 GB {>= 4.0} 16 TB {advfs} 64 K

Max # File Descriptors DISK/LVM Commands

64 K AIX FreeBSD /etc/fstab df -k

60~ K HP-UX:Disk &Filesystem /etc/fstab bdf /sbin/ioscan fdisk -v ad0

sysctl fs.file-max 64 K LINUX(RedHat) /etc/fstab df -k cat /proc/devices SOLARIS /etc/vfstab df -k sysdef format -d c#t#d# format>current format>inquiry prtvtoc sub disk Volume Plex

Tru64 /etc/fstab df -k

Filesystem table /etc/filesystems Free disk blocks df -k Device listing lsdev -C

Disk information bootinfo -s hdisk#

diskinfo /dev/rdsk cat /proc/scsi /c#t#d# /scsi0/sda/model pvdisplay -v /dev/dsk/C#t#d# logical extents logical volume fdisk -l logical extents logical volume

file /dev/rrz0c

Disk Label LVM Concepts

lspv -l hdisk# Partition Volume

disklabel ad0 sub disk Volume Plex

disklabel -p rz0 sub disk Volume Plex disk group advfs

Volume group Journal Filesystem type Default volume group Display volume group Modify physical volume jfs /dev/rootvg lsvg -l rootvg chpv

volume group vxfs /dev/vg00 vgdisplay -v vg00 pvchange pvcreate vinum ld pvdisplay vgreduce

volume group ext3 reiserfs

disk group vxfs

/dev/vx/dsk/rootdg /dev/vol/rootdg vgdisplay -v pvchange pvcreate pvdisplay vgreduce vxdiskadd vxprint -dl vxdg rmdisk voldiskadd volprint -dl voldg rmdisk vxprint -l -g rootdg volprint -l -g rootdg

Prepare physical mkdev -c disk -l hdisk# disk List physical volume lspv

Remove disk from reducevg volume group Move logical volumes to migratepv another physical volumes Create volume group Remove volume group Volume group availability Restore volume group Exports volume group Imports volume group Volume group listing Change logical volume characteristics List logical volume Make logical volume Extend logical volume Reduce logical volume Remove logical volume Prepare boot volumes Remove boot volumes Extend File system Reduce/Split mirrors Merge mirrors Create mirrors Add mirrors mklv -c 2 mklvcopy lv 2 vinum mirror drive exportvg importvg lsvg chvg varyonvg varyoffvg mkvg vinum move -f drive object

pvmove

pvmove

vxassist move

volassist move

vgcreate vgremove

vgcreate vgremove

vxdg init

voldg init

vgchange

vgchange

vgcfgrestore vgexport vgimport vgscan

vgcfgrestore vgexport vgimport vgscan vxdg deport vxdg import voldg deport voldg import

chlv

lvchange

lvchange

vxedit set

voledit set

lslv mklv extendlv AIX reduce LV rmlv bootlist -m normal

vinum lv

lvdisplay lvcreate lvextend lvreduce

lvdisplay lvcreate lvextend lvreduce lvremove lilo

vxprint -vl vxassist make vxassist growto vxassist shrinkto vxedit rm vxbootsetup

volprint -vl volassist make volassist growto volassist shrinkto voledit -g rootdg -rf rm vol1

vinum rm vol

lvremove lvlnboot lvrmboot

chfs -a size=# /mt

extendfs /dev/vg00 resize2fs /lvol8 resize_reiserfs fsadm -F vxfs -b {LE * 1024} /mt lvsplit lvmerge lvcreate -m 1 lvextend -m 1 lvsplit lvmerge

vxva mkfs -M

rmlvcopy

vxassist mirror

volassist make vol 100mb mirror=true

3 of 4

Create striped volumes System recovery tape Backup Restore MISC Startup script Kernel Kernel Parameters

mklv -u 3 -S 64K mksysb -i /dev/rmt0 savevg -i rootvg restvg AIX /etc/rc /usr/lib/boot/unix_up lsattr -E -l sys0

vinum stripe drive

lvcreate -i 3 -I 64 /opt/ignite /bin/make_recovery

lvcreate -i 3 -I 64

vxassist make vol volassist make vol 100mb 100mb layout=raid5 layout=stripe /usr/sys/bin/btcreate

vinum saveconfig

fbackup frecover

tar cvf /dev/rst0 / tar xvf /dev/rst0 LINUX(RedHat) /etc/rc.d/rc /boot/vmlinuz sysctl -a cd /usr/src/linux make mrproper make menuconfig make dep make clean make bzImage make install make modules make modules_install cp arch/i386 /boot/bzImage /boot/vmlinuz-2.2.16 mkinitrd /boot/initrd2.2.16.img 2.2.16 vi /etc/lilo.conf lilo lsmod insmod rmmod netconf

ufsdump ufsrestore SOLARIS /etc/init.d /kernel/genunix sysdef -i

vdump vrestore Tru64 /sbin/init.d /vmunix sysconfig dxkerneltuner

FreeBSD /etc/rc /kernel sysctl -a

HP-UX /sbin/rc /stand/vmunix sysdef kmtune kmsystem cd /stand/build /usr/lbin/sysadm /system_prep -v -s system vi system mk_kernel -s system cd /stand mv system system.prev mv vmunix vmunix.prev mv dlkm dlkm.prev mv /stand/build /system system kmupdate /stand /build/vmunix_test kmadmin -s kmadmin -L kmadmin -U set_parms initial grep -i Physical /var/adm/syslog /syslog.log getconf KERNEL_BITS

Reconfigure the kernel

chdev -l sys0 -a

cd /sys/i386/conf vi KERNEL config KERNEL cd ../../compile /KERNEL make depend make make install

vi /etc/system reboot

doconfig

List modules Load module Unload module Initialize system Physical RAM

genkex

kldstat kldload kldunload

modinfo modload modunload sys-unconfig netsetup

install_assist

/stand/sysinstall

bootinfo -r

sysctl hw.physmem

free

prtconf

uerf | grep memory

Kernel Bits Crash utility Trace System Calls Machine model OS Level Run Level Core dump files

bootinfo -K crash syscalls uname -m bootinfo -m oslevel who -r /var/adm/ras crash truss uname -m uname -r

getconf WORD_BIT lcrash strace uname -m uname -r runlevel

isainfo -kv crash truss uname -imp uname -r who -r /var/crash/`uname -n`

64 kdbx trace uname -p sizer -v who -r

adb tusc model uname -m uname -r who -r /var/adm/crash

{lilo} control-x linux S Key on service mode/F4 Boot from CD/Tape Select Maintenance Limited function Shell >boot Interact with IPL ? Y ISL>hpux -iS {grub} c kernel vmlinuz2.4.9-13 single ro root=/dev/hda8 initrd /initrd2.4.9-13.img boot

Boot single user

ok boot -s

ok boot -s

>>> boot -fl s

Maintenance mode

ok boot -as

>boot Interact with IPL ? Y ISL>hpux -lm control-B co

ok boot -as

Interrupt Key Return to console Timezone Management NTP Daemon /etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd /etc/localtime

Stop-A ok go /etc/sysconfig /clock /etc/TIMEZONE /etc/default/init

control-P

/etc/TIMEZONE

/etc/svid3_tz timezone

/etc/ntp.conf /etc/rc.config.d /etc/rc.conf /etc/rc.d/init.d {xntpd_enable="YES"} /netdaemons /sbin/init.d/xntpd /xntpd /etc/rc.network

/etc/inet/ntp.conf rcmgr set XNTPD_CONF YES /etc/init.d/xntpd /sbin/init.d/xntpd

Related Products Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition

Back to top

You might also like