Chinaunix首页 | 论坛 | 博客
  • 博客访问: 510711
  • 博文数量: 65
  • 博客积分: 2925
  • 博客等级: 上尉
  • 技术积分: 1306
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-01 10:56
个人简介

2013

文章分类

全部博文(65)

分类: 系统运维

2011-07-11 09:53:15

hpux command

history [-n | a z]  display the command history.

example:

hpux#[/home/maintenance/total/201106]history -3    list the last three commands
187     ./total.pl
188     env
189     env |grep EDITOR

hpux#[/home/maintenance/total/201106]history 100 102   list command unmber 100 through 102
100     exit
101     ls
102     cd /home/itow

you type r c to re-enter command unmber c

r 101

-----------------------------------------

recalling commands
must have the editor environment variable set
export EDITOR=vi

at $, press esc and use normal vi commands to scroll through previous cmmands.
k   scrolls backward through the command history.
j   scrolls forward through the command history.
nG  takes you to command number n.

press return to execute the command.


-----------------------------------------

阅读(2148) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~