当前位置:
文档之家› AIX-HP-UX-Linux-Solaris常用命令及配置文件对照表
AIX-HP-UX-Linux-Solaris常用命令及配置文件对照表
Sample configuration files User Accounts Password files
/usr {/dev/hd2} /var {/dev/hd9var} AIX
FreeBSD
HP-UX /etc/passwd /tcb/files/auth/r/root /etc/group /etc/logingroup 2147483647 /etc/securetty {console} -2 -2(nogroup)
passwd root useradd userdel logins usermod HP-UX
Create new user Delete user List users Modify user account General Commands Unique host ID Administrator
vinum move -f drive pvmove object vinum lv vinum rm vol vinum mirror drive vinum stripe drive vgcreate vgremove vgchange vgcfgrestore vgexport vgimport vgscan lvchange lvdisplay lvcreate lvextend lvreduce lvremove lvlnboot lvrmboot extendfs /dev/vg00/lvol8 fsadm -F vxfs -b {LE * 1024} /mt lvsplit lvmerge lvcreate -m 1 lvextend -m 1 lvcreate -i 3 -I 64 /opt/ignite/bin/make_recov ery fbackup frecover FreeBSD /sbin/rc /stand/vmunix sysdef HP-UX
Add printer queue Remove Printer queue Make default printer TCP/IP Network IP configuration Hosts IP addresses Name service switch Network parameters Routing daemon NIC Configurations Secondary IP Address
top monitor sar vmstat iostat alog -o -t boot errpt 1TB 2.75GB 2GB /dev/hd6 /etc/swapspaces lsps -a swapon -a AIX /etc/qconfig stopsrc -s lpd startsrc -s lpd enq
HP-UX /etc/exports /etc/xtab
128 GB
128 GB
Max File Size
64 GB
128 GB
Max # File Descriptors 64 K DISK/LVM Commands Filesystem table Free disk blocks Device listing Disk information df -k lsdev -C AIX /etc/filesystems
Directory Mappings Root filesystem Home Directory
AIX / {/dev/hd4} /home {/dev/hd1} /tmp {/dev/hd3}
FreeBSD / {/dev/ad0s1a} /usr {/dev/ad0s1f} /var {/dev/ad0s1e}
boot from CD/Tape
ok boot -s
>boot
Recover root password Installation/Mainte nance Start Limited Shell getrootfs hdisk0 vi /etc/security/passw passwd root d mkuser adduser rmuser lsuser -f ALL chuser -a AIX hostid smit rmuser FreeBSD uname -i sam Interact with IPL ? Y ISL>hpux -iS
Remove print jobs
lprm qcan enq -x smit mkpq smit rmpq export LPDEST="pq" AIX lsattr -E -l inet0 /etc/hosts /etc/netsvc.conf no -a gated ifconfig -a ifconfig en0 alias IP
telnetd -b /etc/issue
rebuild your kernel with these new values NPTY=#
NSTRPY=# rebootinsf -d ptys -n #
Maximum # of ptys
{MAXUSERS}
Remote Shell YP/NIS service binder
disklabel ad0 sub disk Volume Plex
Display volume group
lsvg -l rootvg
vinum ld
vgdisplay -v vg00 pvchange pvcreate pvdisplay vgreduce
Modify physical volume chpv Prepare physical disk List physical volume Remove disk from volume group Move logical volumes to 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 mkdev -c disk -l hdisk# lspv reducevg migratepv mkvg chvg varyonvg varyoffvg exportvg importvg lsvg chlv lslv mklv extendlv AIX reduce LV rmlv bootlist -m normal chfs -a size=# /mt rmlvcopy mklv -c 2 mklvcopy lv 2
rsh rsh /usr/lib/netsvc/yp/ /usr/sbin/ypbind ypbind AIX /etc/exports /etc/xtab FreeBSD /etc/exports
remsh /usr/lib/netsvc/yp/ypbind
System Files NFS exported NFS Client mounted directories Max File System
FreeBSD /etc/fstab df -k
60~ K HP-UX:Disk &Filesystem /etc/fstab bdf /sbin/ioscan diskinfo /dev/rdsk/c#t#d# pvdisplay -v /dev/dsk/C#t#d# logical extents logical volume volume group vxfs /dev/vg00
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 Printers Printer Queues Stop LP Start LP
top sa vmstat iostat dmesg /dev/ad0s1b swap swapinfo swapon -a FreeBSD /var/spool/print lpd
top glance sar vmstat iostat dmesg 4TB 8TB 4GB /dev/vg00/lvol2 swap swapinfo -a swapon -a HP-UX /etc/lp/interface/* lpshut lpsched
Submit print jobs
lp lpr qprt enq -A lpq lpstat qchstics
lpq
lpstat
cancel cancel lprm /etc/rc.conf /etc/hosts /etc/host.conf sysctl routed ifconfig -a ifconfig xl0 alias IP lpadmin -p pq lpadmin -x pq lpadmin -d pq HP-UX /etc/rc.config.d/netconf /etc/hosts /etc/nsswitch.conf ndd -h gated lanscan -v ifconfig lan0:1 IP