免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: huoniao
打印 上一主题 下一主题

请教:一个菜鸟的疑惑? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-02-12 08:38 |只看该作者

请教:一个菜鸟的疑惑?

谢谢热心的斑竹,现在的问题是这样:history可以看了。但新使用的指令却不能实时加到.sh_history这个文件中去。看到的都是本来存在的内容!

论坛徽章:
0
12 [报告]
发表于 2003-02-12 08:44 |只看该作者

请教:一个菜鸟的疑惑?

#export HISTSIZE=128
足够大了吧;再试试看!

论坛徽章:
0
13 [报告]
发表于 2003-02-12 13:50 |只看该作者

请教:一个菜鸟的疑惑?

哎,还是不行.有劳斑竹帮我仔细看看,多谢:
who
root       pts/ta       Feb 12 13:39
jh_db1#[/]history
sh: fc: Cannot access or open the history file.
jh_db1#[/]export HISTFILE=//.sh_history
jh_db1#[/]export HISTSIZE=128
jh_db1#[/]set

HISTFILE=//.sh_history
HISTSIZE=128
HOME=/
IFS=\'
\'
LINENO=1
LINES=55
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/mx/share/man:/usr/dt/share/man:/opt/samba/man:/opt/resmon/share/man://opt/perl/man:/opt/scr/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/audio/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/image/share/man:/opt/imake/man
OPTARG
OPTIND=1
PATH=/usr/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/mx/bin:/opt/resmon/bin://opt/perl/bin:/opt/scr/bin:/usr/sbin/diag/contrib:/opt/aCC/bin:/opt/langtools/bin:/opt/ignite/bin:/opt/imake/bin:/opt/sanmgr/commandview/client/sbin:/oramon/tngevt/bin:/oramon/tngevt/scripts:/sbin:/home/root
PPID=15698
PS1=\'jh_db1#[/]\'
PS2=\'>; \'
PS3=\'#? \'
PS4=\'+ \'
PWD=/
RANDOM=17223
SECONDS=83
SHELL=/sbin/sh
SYSTYPE=HP-UX
TERM=vt100
TMOUT=0
TZ=EAT-8
_=HISTSIZE=128
c=/oramon/tngevt/tmp
dir=/oramon/tngevt/gui/bin
setu=0
tfn=/oramon/tngevt/opr/config/jh_db1/cai_wtor_node
this_node=jh_db1
jh_db1#[/]alias
autoload=\'typeset -fu\'
command=\'command \'
functions=\'typeset -f\'
history=\'fc -l\'
integer=\'typeset -i\'
local=typeset
nohup=\'nohup \'
r=\'fc -e -\'
stop=\'kill -STOP\'
suspend=\'kill -STOP $$\'
type=\'whence -v\'
who=/usr/bin/who
jh_db1#[/]history
1newfs -F vxfs -o largefiles /dev/vg00/rlv_u02
21ewfs -F vxfs -o largefiles /dev/vg00/rlv_u02
31ewfs -F vxfs -o largefiles /dev/vg00/rlv_u02
4newfs -F vxfs -o largefiles /dev/vg01/rlv_u02
5mewfs -F vxfs -o largefiles /dev/vg01/rlv_u02
6mewfs -F vxfs -o largefiles /dev/vg01/rlv_u02
71ewfs -F vxfs -o largefiles /dev/vg01/rlv_u02
8newfs -F vxfs -o largefiles /dev/vg01/rlv_m01
9mount -o largefiles /dev/vg01/lv_m01 /u02
10newfs -o largefiles -F vxfs /dev/vg01/rlv_m02
11mount -o largefiles /dev/vg01/lv_m02 /u03
12newfs -F vxfs -o largefiles /dev/vg01/lv_m03 /u04
13newfs -F vxfs -o largerfiles /dev/vg01/rlv_m03
14m
jh_db1#[/]

论坛徽章:
0
14 [报告]
发表于 2003-02-12 14:26 |只看该作者

请教:一个菜鸟的疑惑?

#vi /etc/profile
...
export HISTFILE=$HOME/.sh_history
export HISTSIZE=1024
...
重新登录,试试看!

论坛徽章:
0
15 [报告]
发表于 2003-02-12 14:41 |只看该作者

请教:一个菜鸟的疑惑?

可以了,不胜感谢!斑竹实在是太负责了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP