AIX-HP-UX-Linux-Solaris常用命令及配置文件对照表
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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
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
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
HP-UX / {/dev/vg00/lvol1} /home {/dev/vg00/lvol4} /tmp {/dev/vg00/lvol6} /usr {/dev/vg00/lvol7} /var {/dev/vg00/lvol8} /usr/newconfig
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)
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
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
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
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
passwd root useradd userdel logins usermod HP-UX
Create new user Delete user List users Modify user account General Commands Unique host ID Administrator
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
Submit print jobs
lp lpr qprt enq -A lpq lpstat qchk cancel
lp
lp
LP statistics
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
Secondary IP Address
ifconfig en0 alias IP
ifconfig xl0 alias IP
ifconfig lan0:1 IP
Login prompt
Increase the # of pseudo-terminals
HERALD @ /etc/security/login .cfg odmget -q "attribute=num and uniquetype=pty/pty/ pty" PdAt | sed odmchange -q "attribute=num and uniquetype=pty/pty/ pty" -o PdAt chdev -l pty0 -anum=256 P 512 remsh
bootinfo -s hdisk# fdisk -v ad0
Disk Label LVM Concepts Journal Filesystem type Default volume group
lspv -l hdisk# Partition Volume Volume group jfs /dev/rootvg
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
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
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
Groups file Maximum # of user ID Allow/Deny remote login User nobody's id # Group nobody's id #
/etc/passwd /etc/passwd /etc/security/passw /etc/master.passwd d /etc/group /etc/group /etc/security/group 4294967295 /etc/security/user {rlogin=true} 4294967294 4294967294 65535 /etc/ttys {secure} 65534 65534
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