AIX中一些常用的命令汇总

oracle大型数据库系统在AIX/unix上的实战详解》集中讨论33:AIX中一些常用的命令程  文平

和若干读者邮件沟通了一些关于AIX命令使用方面的问题,干脆,这里我给大家做一个列表,把AIX一些常用的命令列在这里,也算总结一二. 一些内容来自网上别人的共享,姑且学之,也感谢大家的无私奉献!

Root filesystem

/ {/dev/hd4}

Home Directory

/home {/dev/hd1}

 

/tmp {/dev/hd3}

 

/usr {/dev/hd2}

 

/var {/dev/hd9var}

Sample configuration files

-

Password files

/etc/passwd
/etc/security/passwd

Groups file

/etc/group
/etc/security/group

Maximum # of user ID

4294967295

Allow/Deny remote login

/etc/security/user
{rlogin=true}

User nobody's id #

4294967294

Group nobody's id #

4294967294

Recover root password

boot from CD/Tape
Installation/Maintenance
Start Limited Shell
getrootfs hdisk0
vi /etc/security/passwd

Create new user

mkuser

Delete user

rmuser

List users

lsuser -f ALL

Modify user account

chuser -a

Unique host ID

hostid

Administrator

smit

Performance monitor

top
monitor

System activity reporter

sar

Virtual Memory statistics

vmstat

I/O statistics

iostat

Error logs

alog -o -t boot
errpt

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

Printer Queues

/etc/qconfig

Stop LP

stopsrc -s lpd

Start LP

startsrc -s lpd

Submit print jobs

enq
lp
lpr
qprt

LP statistics

enq -A
lpq
lpstat
qchk

Remove print jobs

cancel
lprm
qcan
enq -x

Add printer queue

smit mkpq

Remove Printer queue

smit rmpq

Make default printer

export LPDEST="pq"

Network IP configuration

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 @
/etc/security/login.cfg

Increase the # of pseudo-terminals

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

Maximum # of ptys

512

Remote Shell

remsh
rsh

YP/NIS service binder

/usr/lib/netsvc/yp/ypbind

NFS exported

/etc/exports

NFS Client mounted directories

/etc/xtab

Max File System

128 GB

Max File Size

64 GB

Max # File Descriptors

64 K

Filesystem table

/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
varyonvg
varyoffvg

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

Startup script

/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
bootinfo -m

OS Level

oslevel

Run Level

who -r

Core dump files

/var/adm/ras

Boot single user

Key on service mode/F4
Boot from CD/Tape
Select Maintenance
Limited function Shell

Timezone Management

/etc/environment
/etc/profile

NTP Daemon

/etc/ntp.conf
startsrc -s xntpd

Install Software

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

Devices

/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

猜你喜欢

转载自blog.csdn.net/weixin_33805992/article/details/94512053
今日推荐