《oracle大型数据库系统在AIX/unix上的实战详解》集中讨论33:AIX中一些常用的命令程 文平
和若干读者邮件沟通了一些关于AIX命令使用方面的问题,干脆,这里我给大家做一个列表,把AIX一些常用的命令列在这里,也算总结一二. 一些内容来自网上别人的共享,姑且学之,也感谢大家的无私奉献!
/ {/dev/hd4} |
|
Home Directory |
/home {/dev/hd1} |
/tmp {/dev/hd3} |
|
/usr {/dev/hd2} |
|
/var {/dev/hd9var} |
|
Sample configuration files |
- |
/etc/passwd |
|
Groups file |
/etc/group |
Maximum # of user ID |
4294967295 |
Allow/Deny remote login |
/etc/security/user |
User nobody's id # |
4294967294 |
Group nobody's id # |
4294967294 |
Recover root password |
boot from CD/Tape |
Create new user |
mkuser |
Delete user |
rmuser |
List users |
lsuser -f ALL |
Modify user account |
chuser -a |
hostid |
|
Administrator |
smit |
Performance monitor |
top |
System activity reporter |
sar |
Virtual Memory statistics |
vmstat |
I/O statistics |
iostat |
Error logs |
alog -o -t boot |
Physical RAM |
1TB |
Shared Memory |
2.75GB |
Process Data Space |
2GB |
Swap device |
/dev/hd6 |
Swap file type |
/etc/swapspaces |
Display swap size |
lsps -a |
Activate Swap |
swapon -a |
/etc/qconfig |
|
Stop LP |
stopsrc -s lpd |
Start LP |
startsrc -s lpd |
Submit print jobs |
enq |
LP statistics |
enq -A |
Remove print jobs |
cancel |
Add printer queue |
smit mkpq |
Remove Printer queue |
smit rmpq |
Make default printer |
export LPDEST="pq" |
lsattr -E -l inet0 |
|
Hosts IP addresses |
/etc/hosts |
Name service switch |
/etc/netsvc.conf |
Network parameters |
no -a |
Routing daemon |
gated |
NIC Configurations |
ifconfig -a |
Secondary IP Address |
ifconfig en0 alias IP |
Login prompt |
HERALD @ |
Increase the # of pseudo-terminals |
odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" | chdev -l pty0 -anum=256 -P |
Maximum # of ptys |
512 |
Remote Shell |
remsh |
YP/NIS service binder |
/usr/lib/netsvc/yp/ypbind |
/etc/exports |
|
NFS Client mounted directories |
/etc/xtab |
Max File System |
128 GB |
Max File Size |
64 GB |
Max # File Descriptors |
64 K |
/etc/filesystems |
|
Free disk blocks |
df -k |
Device listing |
lsdev -C |
Disk information |
bootinfo -s hdisk# |
Disk Label |
lspv -l hdisk# |
LVM Concepts |
Partition |
Volume group |
|
Journal Filesystem type |
jfs |
Default volume group |
/dev/rootvg |
Display volume group |
lsvg -l rootvg |
Modify physical volume |
chpv |
Prepare physical disk |
mkdev -c disk -l hdisk# |
List physical volume |
lspv |
Remove disk from volume group |
reducevg |
Move logical volumes to another physical volumes |
migratepv |
Create volume group |
mkvg |
Remove volume group |
reducevg |
Volume group availability |
chvg |
Restore volume group |
|
Exports volume group |
exportvg |
Imports volume group |
importvg |
Volume group listing |
lsvg |
Change logical volume characteristics |
chlv |
List logical volume |
lslv |
Make logical volume |
mklv |
Extend logical volume |
extendlv |
Remove logical volume |
rmlv |
Prepare boot volumes |
bootlist -m normal |
Remove boot volumes |
|
Extend File system |
chfs -a size=# /mt |
Reduce/Split mirrors |
rmlvcopy |
Merge mirrors |
|
Create mirrors |
mklv -c 2 |
Add mirrors |
mklvcopy lv 2 |
Create striped volumes |
mklv -u 3 -S 64K |
System recovery tape |
mksysb -i /dev/rmt0 |
Backup |
savevg -i rootvg |
Restore |
restvg |
/etc/rc |
|
Kernel |
/usr/lib/boot/unix_up |
Kernel Parameters |
lsattr -E -l sys0 |
Reconfigure the kernel |
chdev -l sys0 -a |
List modules |
genkex |
Initialize system |
install_assist |
Physical RAM |
bootinfo -r |
Kernel Bits |
bootinfo -K |
Crash utility |
crash |
Trace System Calls |
syscalls |
Machine model |
uname -m |
OS Level |
oslevel |
Run Level |
who -r |
Core dump files |
/var/adm/ras |
Boot single user |
Key on service mode/F4 |
Timezone Management |
/etc/environment |
NTP Daemon |
/etc/ntp.conf |
installp -a |
|
Uninstall software |
installp -u |
List installed software |
lslpp -L all |
Verify installed software |
lppchk -v |
List all files |
lslpp -f fileset |
List installed patches |
instfix -i |
Package owner |
lslpp -w path |
SW Directory |
/usr/lpp |
/dev |
|
Install devices for attached peripherals |
cfgmgr -v |
Remove device |
rmdev -l |
Device drivers |
lscfg |
CPU |
lsdev -Cc processor |
List Terminal |
lsdev -Cc tty |
Diagnostics |
diag |
Whole Disk |
/dev/hdisk# |
CDROM |
/dev/cd0 |
CDROM file type |
cdrfs |
Rewinding tape drive |
/dev/rmt0 |
Non-rewinding tape drive |
/dev/rmt0.1 |
Floppy drive |
/dev/rfd0 |
《oracle大型数据库系统在AIX/unix上的实战详解》集中讨论33:AIX中一些常用的命令程 文平
转载于:https://www.cnblogs.com/dbserver/articles/1683581.html