Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
iamverylovely
V2EX  ›  Linux

请问 history -c 无效是什么情况?

  •  
  •   iamverylovely · Dec 24, 2019 · 5345 views
    This topic created in 2510 days ago, the information mentioned may be changed or developed.

    还是有内容

    ~/.bash_history
    

    terminal 窗口关了在打开历史记录也还在。

    4 replies  •  2019-12-25 09:51:37 +08:00
    ysc3839
    ysc3839
    Dec 24, 2019 via Android
    1
    没有删除 ~/.bash_history ?
    iamverylovely
    iamverylovely
    OP
    Dec 24, 2019
    2
    @ysc3839 没有清空
    lyzy
    lyzy
    Dec 25, 2019 via iPhone❤️1
    3
    没有落盘 再执行 history -w
    linora
    linora
    Dec 25, 2019
    4
    export HISTFILE=/dev/null
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1740 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 03:57 · PVG 11:57 · LAX 19:57 · JFK 22:57
    ♥ Do have faith in what you're doing.