IBM P系列小型机故障的基本定位(6)
r -repeats last command
rm -i ******* -remove a file & will prompt you if you are sure rmdev -l XXXXX -removes a device and defines it to data base rmdev -l XXXXX -d -removes a device and deletes it from data base set -o vi -sets up to veiw cammands that have been run :wq -write(save) and quit file
Esc + k -used with SET command to list last command k,l -k=list next command ran, l=steps you thru command I -use with SET command inserts characters j -steps you backwards
cw -cw=removes a word,just type in new word (use with Esc)
a,x,r -a=added text, x=delete text, r=replace text(r+letter) R -lets you type over letters or words smit ***** -(*****= tape,disk,tty,etc.fastpath) su -stands for switch user,(NOT super user) su -switches to root id or prompts you for password su XXXXXX -switches to XXXXXXs id
tar -cvf /dev/rmtX /etc -will copy /etc to a tape drive tar -tvf /dev/rmtX -will read a tape drive tctl -f /dev/rmtX rewoffl -rewind & eject tape
tctl -f /dev/rmtX.1 fsf 3 -forward advances a tape to be read by TAR tctl -F -list avail commands(-F flag is not correct) tctl retension -retensions tape in tape drive
& -put any command in background with process ID
uptime -how long since last IPL and how many users on system vmstat # # -reports virtual memory statistics and more iostat # # -reports CPU,disk & cdrom statistics
use with vm & iostat -1st #(how many sec to repeat), 2nd #(how many times) who -shows users on system
who am i -shows user id on your terminal & tty number USE the following with other commands. ---------------------------------------------------
>/tmp/****.1 -creates a file (used with lsXXX command) >/dev/lp# -redirectes output to a printer(use with a comd) |grep -is useful to search for text in a file.
|pg -use after any command to view one page at a time | -pipe sign - Takes the output of one command and feeds it to the input of another. > -redirect sign or greater than sign / -slash sign -back slash sign
>> -double redirect will add text to end of file & -put any command in background with process ID
MUST unmount file system 1st to run fsck & dfsck/only use with a problem ---------------------------------------------------------------------------------------------- fsck XXXXXXX -will check a file system for errors & prompt dfsck /XXXX /XXXX -will check 2 different file sys at the same time FOLLOWING command lines will delete a group of devices as a group, the #, sign is the hdisk#s that you want to delete.(this is an exampe.)
-------------------------------------------------------------------------------------------------- for disk in # # # # -this line and the next 3 line work together do -the prompt will be > (REMEMBER to hit enter)
rmdev -l hdisk# {disk} -d -the prompt will be > (brackets around disk change) done -the prompt will be > (on a printout. change to -) SSA RELATED COMMANDS
-----------------------------------------
lsattr -El ssaX -list attributes of SSA adapters lscfg -vl ssaX -list VPD of SSA adapters lsdev -C | grep SSA -list all SSA devices lslpp -L | grep SSA -list SSA device drivers maymap -ap -maymap display of SSA loop maymap -alph -maymap display of SSA loop lscfg -vl pdisk* -list VPD of pdisks
ssaxlate -l hdiskX -list hdisk to pdisk assignment ssaxlate -l pdiskX -list pdisk to hdisk assignment ssa_rescheck -l hdiskX -show hdisk reservation status
FOLLOWING CMDS LIST, COPY, AND RESTORE FOR cpio,tar,dd,backup,dos: NOTE: The fd0 is just a dev. so you may use any media you desire. ----------------------------------------------------------------------------------- LIST COPY ------ --------
cpio -itv < /dev/fd0 ls /tmp/fn | cpio -ov > /dev/fd0 tar -tvf /dev/fd0 tar -cvf /dev/fd0 fn dd li -l | dd dd if=fn of=/dev/fd0
restore -Tf /dev/fd0 backup -0 -uf /dev/fd0 fn By INODE restore -Tf /dev/fd0 find / -print | backup -i -f/dev/fd0 By NAME dosdir doswrite -a (AIX fn) (fn.ext) TO RESTORE ------------------- cpio -iv fn < /dev/fd0 tar -xvf /dev/fd0 dd of=/dev/fd0 if=fn
restore -xvf /dev/fd0 fn BY NAME/INODE, restore understands unless special
flags were used.
dosread -a (fn.ext) (AIX fn) TO DOCUMENT THE SYSTEM ------------------------------------------- lscfg -v > /dev/lpx -to list sys config/VPD lsuser -f ALL > /dev/lpX -to list users lsdev -Cc tty -H -to list all ttys lsdev -Cc lp -H -to list all lps
lsattr -El ttyX > /dev/lpX -to list ttyX parameters (do for each tty) lsattr -El lpX > /dev/lpX -to list lpX parameters (do for each lp) lpstat > /dev/lpX -to list queues lsfs > /dev/lpx -to list filesystems lspv > /dev/lpx -to list hard drives
lspv hdiskx -to list hard drive config (do for each drive) lspv -l hdiskx -to list files on drive lsvg rootvg -to list rootvg data plus printout of or save to diskette: ------------------------------------------ /etc/inittab /etc/objrepos/Cu* /etc/passwd /etc/filesystems /etc/security/passwd /etc/hosts /sbin/rc.boot (完)
…… 此处隐藏:1479字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [政务民生]2013年公共基础知识热点问题(七)
- [政务民生]检验检测机构资质认定评审准则及释义20
- [政务民生]关于印发重庆市房屋建筑和市政基础设施
- [政务民生]1、隧道洞身开挖支护施工技术交底书
- [政务民生]2015年山东省17地市中考语文试题分类汇
- [政务民生]2-高级会计师资格考试和评审流程图
- [政务民生]2018版中国清分机行业发展分析及前景策
- [政务民生]新课改高中政治探究
- [政务民生]2018-2024年中国新型组合房屋行业投资
- [政务民生]2015年上海市春季高考数学模拟试卷五
- [政务民生]灌砂法及环刀法测压实度(带计算过程)
- [政务民生]运筹学实验2求解非线性规划
- [政务民生]劝学、逍遥游默写(教师卷)
- [政务民生]《运筹学》 - 期末考试 - 试卷A - 答案
- [政务民生]八年级英语下册 Module 6 Hobbies测试
- [政务民生]2019年宪法知识竞赛试题库100题(含答
- [政务民生]自动化英文文献翻译
- [政务民生]公文格式实施细则
- [政务民生]高一地理上册课堂跟踪练习题6
- [政务民生]会计继续教育习题及答案
- 第三章 无约束最优化方法
- 泛读教程第三册答案
- 魏晋南北朝文学
- 幂的运算复习题
- 城市环境问题的成因与治理策略_以社会
- 钢结构行业产业链及竞争分析研究
- 新型热塑性弹性体增韧聚丙烯的研究
- 中国旅游地理B卷试题及答案
- (苏教版)五年级数学上册第三单元测试卷
- 不稳定性心绞痛诊断与治疗
- 俞氏国际后勤职能部门绩效考核办法
- GB7258-2017新标准考试题含答案
- 小学生汉字听写比赛活动方案
- 1.3《平抛运动》学案 教科版必修2
- 2011香港特别行政区公务员考试复习资料
- 考虑水力条件变化的城市给水管网可靠性
- 表面活性剂在油田开发和生产中的应用
- ITT内部培训资料-FI端吸泵的介绍
- 文明守纪,从我做起学生发言稿
- 初中读《聊斋志异》心得体会800字范文




