开发者社区 问答 正文

Linux基本命令中 history命令如何使用 HISTSIZE 禁用 history?

已解决

Linux基本命令中 history命令如何使用 HISTSIZE 禁用 history?

展开
收起
去校区学技术 2022-04-02 14:25:28 899 分享 版权
1 条回答
写回答
取消 提交回答
  • 推荐回答

    如果你想禁用 history,可以将 HISTSIZE 设置为 0:

    # export HISTSIZE=0
    # history
    # [Note that history did not display anything]
    
    2022-04-02 15:04:27
    赞同 展开评论