history命令问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
wanzy
帖子: 110
注册时间: 2008-05-11 12:08

history命令问题

#1

帖子 wanzy » 2008-06-06 8:33

在ubuntu8.04终端中输入history会显示所有你用过的命令,如果我想清除这些命令记录,我该怎么做?就是我再输入history的时候,不再显示之前的命令记录。
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#2

帖子 yaoms » 2008-06-06 8:36

:> ~/.bash_history
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
magicalboy
帖子: 32
注册时间: 2008-06-05 12:39
联系:

#3

帖子 magicalboy » 2008-06-06 9:36

yaoms 写了::> ~/.bash_history
不行啊
"......
20 history
21 sun-java6-*
22 :>~/.bash_history
23 history
24 :> ~/.bash_history
25 history
"
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#4

帖子 bones7456 » 2008-06-06 9:52

用内建命令 fc

不过用得着这样吗?怕人家看到你执行的命令?
关注我的blog: ε==3
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#5

帖子 eexpress » 2008-06-06 10:31

rm ~/.bash_history
● 鸣学
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#6

帖子 yaoms » 2008-06-06 10:40

magicalboy 写了:
yaoms 写了::> ~/.bash_history
不行啊
"......
20 history
21 sun-java6-*
22 :>~/.bash_history
23 history
24 :> ~/.bash_history
25 history
"
当前会话的历史列表阿,那要用fc清除。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
sa.net
帖子: 62
注册时间: 2008-04-26 11:41
来自: 广东广州

#7

帖子 sa.net » 2008-06-06 11:50

history -c
Cygwin中国镜像 ====== 图片生成:http://www.makepic.com/ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ 图片
wanzy
帖子: 110
注册时间: 2008-05-11 12:08

#8

帖子 wanzy » 2008-06-06 11:53

bones7456 写了:用内建命令 fc

不过用得着这样吗?怕人家看到你执行的命令?
是没必要,想知道而已,呵呵
回复