在 TCSH Shell 中启用历史记录

发布于 2024-09-16 11:59:58 字数 199 浏览 3 评论 0原文

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

我尝试过:

  1. 将 $history 变量设置为 100。
  2. 将$savehist 设置为 99。
  3. 将 $histfile 设置为 $home/.history

在 shell 中键入命令不会将命令保存在历史文件中。

How can I enable logging of all the commands entered in the tcsh shell?

I've tried:

  1. Setting the $history variable to 100.
  2. The $savehist to 99.
  3. Set the $histfile to $home/.history

Typing commands into the shell doesn't save the commands in the history file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轻许诺言 2024-09-23 11:59:58

在我的 .tcshrc 中:

set history=2000
set savehist=(2000 merge)

In my .tcshrc:

set history=2000
set savehist=(2000 merge)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文