免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1381 | 回复: 0
打印 上一主题 下一主题

A I X 技巧 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-13 17:30 |只看该作者 |倒序浏览
请阅读全文,欢迎指导交流
A I X   H i n t s   &   T i p s
Frequently Asked Questions (FAQ) from the AIX User and System Administrator Courses.
If you don't find it here, try the
[color="#000080"]comp.unix.aix FAQ
or the
[color="#000080"]comp.unix.questions FAQ
.
If you don't find it there post a question at the
[color="#000080"]comp.unix.aix newsgroup
, the
[color="#000080"]Tek-Tips AIX Technical forum
, or the
[color="#000080"]ROOTVG.NET Forum
. Any other Forums? Let us know:
[color="#000080"]forums@rootvg.net
A I X   U s e r   Q & A
( = click for more information, links with are outside of ROOTVG.NET)
Q:
How to change the prompt?
A:
Add in $HOME/.profile
[/url]
: export PS1=`hostname`:'$PWD#  ' (don't forget the ' before the $).


Q:
How to activate history inline editing in the Korn shell (using vi)?
A:
Add in $HOME/.profile: set -o vi
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixuser/usrosdev/inline_edit_korn.htm#A265913bd][color="#000080"]

(then you can use k [up], j [down], l [right] and h [left]).


Q:
How to use alias in the Korn shell?
A:
Add in $HOME/.kshrc
[/url]
: alias  l='ls -l'   
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds1/alias.htm]


Add in $HOME/.profile: export ENV=$HOME/.kshrc


Q:
How to go to the previous directory (Korn shell)?
A:
# cd -  or  # cd ~-
[/url]
(this is called tilde-substitution, ~- is replaced by the $OLDPWD variable).


Q:
How do I change my default print queue?
A:
The LPDEST environment variable can be set to your default print queue.
Add in $HOME/.profile: export LPDEST=

  
S y s t e m   M a n a g e m e n t   Q & A
Q:
Where do I find the latest browser version of Netscape?
A:
Download at
[url=http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=netscape7][color="#000080"]AIX Netscape 7.0 has graduated

.


Q:
Who is in a filesystem and which proces (PID) is using a file?
A:
# fuser  -u  
[/url]


# fuser  
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds2/fuser.htm]



Q:
How to get the runlevel?
A:
# who  -r
[/url]


Q:
What version of AIX is used?
A:
# uname  -a
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds5/uname.htm]

# oslevel
[/url]


Q:
How to view/change the bootlist?
A:
View: # bootlist  -om  normal/service
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds1/bootlist.htm]

Change:
1) # bootlist  -m  normal/service  cd0  rmt0  hdisk0
[/url]
2) # diag
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds2/diag.htm]

3) use the SMS menu (reboot and F1)


Q:
To which fileset belongs a command?
A:
# which_fileset topas
[/url]
(the which_fileset command is part of the bos.rte.install fileset, also install bos.content_list)
topas
[url=http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds5/topas.htm]

(AIX 4.2.1+), tprof, svmon, filemon are in perfagent.tools


Q:
Which performance commands are available (AIX 4.3)?
A:
Fileset
Commands
bos.acct
iostat, vmstat, sar, timex
bos.rte
ps, lsps, lsattr, lsdev, lspv, lslv, lsvg, chdev, chlv, mkps, chps, migratepv, reorgvg, nice, renice, wlmstat
bos.sysmgt
trace, trcrpt, pstat
bos.net.client
netstat, nfsstat, ifconfig, no, nfso
bos.net.server
iptrace, ipreport, tcpdump
bos.perf
Performance Diagnotic Tool (PDT)
bos.adt.prof
prof, grof
bos.adt.samples
vmtune, emstat, schedtune
perfagent.tools
filemon, fileplace, netpmon, svmon, tprof, rmss, syscalls, lockstat, fdpr, stem, bf, bfrpt, stripnm, genkld, genld, genkex, topas (monitor like for AIX 4.3.3+)
bos.perf.tools
    (AIX 5.1)
tprof, svmon, filemon, topas


Performance Toolbox for AIX (Licensed Program Product (LPP))
Fileset
Commands
perfmgr.local
xmperf
perfmgr.network
xmperf, chmon


Tools from the Web
nmon, perfpmr, monitor, PV, xgprof, Xprofiler


Q:
Where can I find nmon ?
<span lang="EN-US" style="FONT-S

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2887/showart_21161.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP