General Commands Aix Freebsd Hp-Ux
General Commands Aix Freebsd Hp-Ux
top top
Performance monitor monitor top glance
Secondary IP Address ifconfig en0 alias IP ifconfig xl0 alias IP ifconfig lan0:1 IP
HERALD @
Login prompt /etc/security/login.cfg telnetd -b /etc/issue
odmget -q "attribute=num
and
uniquetype=pty/pty/pty" rebuild your kernel with
PdAt | sed "s/0-64/0-512/" | these new values NPTY=#
odmchange -q
"attribute=num and
uniquetype=pty/pty/pty" -o
PdAt NSTRPY=#
insf -d ptys -n #
insf -d ptym -n #
Increase the # of pseudo- insf -d pts -s # -e -v
terminals
Increase the # of pseudo-
terminals
kmupdate
/stand/build/vmunix_test
grep -i Physical
Physical RAM bootinfo -r sysctl hw.physmem /var/adm/syslog/syslog.log
Kernel Bits bootinfo -K getconf KERNEL_BITS
Crash utility crash crash adb
Trace System Calls syscalls truss tusc
uname -m model
Machine model bootinfo -m uname -m uname -m
OS Level oslevel uname -r uname -r
Run Level who -r who -r
Core dump files /var/adm/ras /var/adm/crash
{/etc/iu.ap}
halt
boot -r
176 {BSD}
256 3000 {SYSV} 8192
ext3
reiserfs vxfs advfs
/dev/vx/dsk/rootdg /dev/vol/rootdg
vgdisplay -v vxprint -l -g rootdg volprint -l -g rootdg
pvchange
pvcreate vxdiskadd voldiskadd
pvdisplay vxprint -dl volprint -dl
resize2fs vxva
resize_reiserfs mkfs -M
lvsplit
lvmerge
volassist make vol 100mb
vxassist mirror mirror=true
/usr/sys/bin/btcreate
tar cvf /dev/rst0 / ufsdump vdump
tar xvf /dev/rst0 ufsrestore vrestore
LINUX(RedHat) SOLARIS Tru64
/etc/rc.d/rc /etc/init.d /sbin/init.d
/boot/vmlinuz /kernel/genunix /vmunix
sysconfig
dxkerneltuner
sysctl -a sysdef -i
cd /usr/src/linux vi /etc/system
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/initrd-
2.2.16.img 2.2.16
vi /etc/lilo.conf
lilo
doconfig
lsmod modinfo
insmod modload
rmmod modunload
netconf sys-unconfig netsetup
{lilo}
control-x
linux S
{grub}
c
kernel vmlinuz-2.4.9-
13 single
ro root=/dev/hda8
initrd /initrd-2.4.9-13.img
boot ok boot -s <TT>> tt s< -fl boot>
ok boot -as
Stop-A control-P
ok go
/etc/TIMEZONE /etc/svid3_tz
/etc/sysconfig/clock /etc/default/init timezone
rcmgr set XNTPD_CONF
/etc/ntp.conf /etc/inet/ntp.conf YES
/etc/rc.d/init.d/xntpd /etc/init.d/xntpd /sbin/init.d/xntpd