相关疑难解决方法(0)

“终端”、“外壳”、“tty”和“控制台”之间的确切区别是什么?

我认为这些术语在松散使用时几乎指的是同一件事:

  • 终端
  • 贝壳
  • 打字机
  • 安慰

这些术语中的每一个究竟指的是什么?

shell terminal tty terminology console

1433
推荐指数
10
解决办法
42万
查看次数

防止终端显示以前执行的命令

我有一个脚本,可以让我在处理项目时记录随机想法。在终端中,我将通过运行添加一个新的日志条目

$ @ "some random thought"
Run Code Online (Sandbox Code Playgroud)

where@只是我脚本的别名。

假设我的终端处于这种状态:

$ ls /var/tmp
somefile.ext
another-file.l
$ _
Run Code Online (Sandbox Code Playgroud)

运行我的脚本后,它看起来像这样:

$ ls /var/tmp
somefile.ext
another-file.l
$ @ "some random thought"
$ _
Run Code Online (Sandbox Code Playgroud)

现在,我不希望该行 ( $ @ "some random thought") 在我输入后停留在屏幕上。我只希望脚本运行并且在屏幕上不留下任何痕迹(有些事情是个人的,有些人可能会看到我的终端)。我也不想clear整个屏幕。

你认为这可能吗?如果有帮助,我正在使用Iterm2

注意:我知道如何处理history以便它不会记录我的日志条目。我只想在屏幕上不留下任何痕迹。

shell bash zsh terminal

7
推荐指数
3
解决办法
587
查看次数

标签 统计

shell ×2

terminal ×2

bash ×1

console ×1

terminology ×1

tty ×1

zsh ×1