V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Rorschach
V2EX  ›  程序员

能否在Linux终端或win7的命令提示符中,按上下键的时候不显示历史命令?

  •  
  •   Rorschach · 2013-11-29 09:49:36 +08:00 · 2649 次点击
    这是一个创建于 3772 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    1970-01-01 08:00:00 +08:00
    g0t3n
        1
    g0t3n  
       2013-11-29 09:54:19 +08:00
    bash:
    unset HISTFILE
    export HISTSIZE=0
    Kymair
        2
    Kymair  
       2013-11-29 09:54:56 +08:00
    你是想直接disable掉這個功能,還是想另作他用?

    Linux下的話
    unset HISTFILE
    http://www.commandlinefu.com/commands/view/2237/disable-history-for-current-shell-session
    XDA
        3
    XDA  
       2013-11-29 09:57:42 +08:00
    history -c
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   954 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:52 · PVG 05:52 · LAX 14:52 · JFK 17:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.