【问题标题】:view history of commands typed in other terminals by the same user [closed]查看同一用户在其他终端中键入的命令的历史记录[关闭]
【发布时间】:2014-05-10 18:39:20
【问题描述】:

标题

当我输入历史时,输出似乎与当前终端相关联。如何查看同一用户在其他终端中键入的命令的历史记录?谢谢。

【问题讨论】:

    标签: linux bash shell solaris


    【解决方案1】:

    下面的命令将显示在终端上输入的命令的总历史,

    cat ~/.bash_history
    

    【讨论】:

    • 或试试history | less
    • cat ~/.bash_history 显示的内容与 history 命令不同: $ cat ~/.bash_history|grep motif $ history |grep motif 559 rw -motif -f $DYNAMIC_DIR/riskwatch/sessionfiles /JS120008-rw.base-run000.scf
    猜你喜欢
    • 1970-01-01
    • 2021-10-02
    • 1970-01-01
    • 2018-05-10
    • 2018-10-10
    • 2017-06-06
    • 1970-01-01
    • 2015-02-03
    • 2012-01-18
    相关资源
    最近更新 更多