博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
AIX中一些常用的命令汇总
阅读量:6114 次
发布时间:2019-06-21

本文共 4457 字,大约阅读时间需要 14 分钟。

 

《》集中讨论33:中一些常用的命令程 

和若干读者邮件沟通了一些关于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

 

《》集中讨论33:中一些常用的命令程 

转载于:https://www.cnblogs.com/dbserver/articles/1683581.html

你可能感兴趣的文章
vb sendmessage 详解1
查看>>
jquery用法大全
查看>>
Groonga 3.0.8 发布,全文搜索引擎
查看>>
PC-BSD 9.2 发布,基于 FreeBSD 9.2
查看>>
网卡驱动程序之框架(一)
查看>>
css斜线
查看>>
Windows phone 8 学习笔记(3) 通信
查看>>
重新想象 Windows 8 Store Apps (18) - 绘图: Shape, Path, Stroke, Brush
查看>>
Revit API找到风管穿过的墙(当前文档和链接文档)
查看>>
Scroll Depth – 衡量页面滚动的 Google 分析插件
查看>>
Windows 8.1 应用再出发 - 视图状态的更新
查看>>
自己制作交叉编译工具链
查看>>
Qt Style Sheet实践(四):行文本编辑框QLineEdit及自动补全
查看>>
[物理学与PDEs]第3章习题1 只有一个非零分量的磁场
查看>>
深入浅出NodeJS——数据通信,NET模块运行机制
查看>>
onInterceptTouchEvent和onTouchEvent调用时序
查看>>
android防止内存溢出浅析
查看>>
4.3.3版本之引擎bug
查看>>
SQL Server表分区详解
查看>>
使用FMDB最新v2.3版本教程
查看>>