Unix Command Reference
Unix Command Reference
Unix Commands on Different OS's [ID 293561.1] Modified 16-JUL-2010 Type BULLETIN Status PUBLISHED
/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/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
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
/etc/xtab
/etc/xtab
/var/lib/nfs/xtab
128 GB
128 GB
2 TB
1 TB 8000 TB {vxfs}
2 of 4
64 GB
128 GB
1 TB 2 GB {=<2.5.1}
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
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
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
/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 vxdg deport vxdg import voldg deport voldg import
chlv
lvchange
lvchange
vxedit set
voledit set
vinum lv
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
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
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
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
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
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
install_assist
/stand/sysinstall
bootinfo -r
sysctl hw.physmem
free
prtconf
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
isainfo -kv crash truss uname -imp uname -r who -r /var/crash/`uname -n`
{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
ok boot -s
ok boot -s
Maintenance mode
ok boot -as
ok boot -as
Interrupt Key Return to console Timezone Management NTP Daemon /etc/environment /etc/profile /etc/ntp.conf startsrc -s xntpd /etc/localtime
control-P
/etc/TIMEZONE
/etc/svid3_tz timezone
Related Products Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Back to top