Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unix 在TCSH Shell中启用历史记录_Unix_Shell_Solaris_Tcsh - Fatal编程技术网

Unix 在TCSH Shell中启用历史记录

Unix 在TCSH Shell中启用历史记录,unix,shell,solaris,tcsh,Unix,Shell,Solaris,Tcsh,如何启用tcsh shell中输入的所有命令的日志记录 我试过: 将$history变量设置为100 美元的储蓄率是99美元 将$histfile设置为$home/.history 在shell中键入命令不会将命令保存在历史文件中 在my.tcshrc中: set history=2000 set savehist=(2000 merge) tcsh是您的登录shell吗?您在哪里设置了这些变量?在$home/.cshrc中。我的外壳似乎无法处理。这不是我的登录shell。只有登录tcsh才能

如何启用tcsh shell中输入的所有命令的日志记录

我试过:

  • 将$history变量设置为100
  • 美元的储蓄率是99美元
  • 将$histfile设置为$home/.history
  • 在shell中键入命令不会将命令保存在历史文件中

    在my.tcshrc中:

    set history=2000
    set savehist=(2000 merge)
    

    tcsh是您的登录shell吗?您在哪里设置了这些变量?在$home/.cshrc中。我的外壳似乎无法处理。这不是我的登录shell。只有登录tcsh才能在注销时将历史记录保存在histfile上,如手册页面中所述。要以登录shell的形式启动它,请执行以下操作:tcsh-l