小编use*_*279的帖子

发出“exec &>filename”后将输出恢复到终端

我正在尝试执行以下操作:

exec &>filename
Run Code Online (Sandbox Code Playgroud)

在此之后,我看不到任何内容,包括我输入的内容,好吧。

我疯狂地尝试 ,exec 1>&1exec 2>&2,但没有任何反应。

现在,在不杀死 shell 的情况下,如何分别取回重定向到 stdout 的输出和重定向到 stderr 的错误?文件描述符是引用标准 [in|out]put 和 stderr 的唯一方法吗?

io-redirection

17
推荐指数
2
解决办法
2万
查看次数

find 命令中的“初始化时间”是多少?

当我尝试参考 find 命令的手册页时,我遇到了

-mmin n
        The value of n can be one of the following:
          n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
               n.
          -n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
               less than n.
          +n
               Evaluates as True if the file modification time subtracted from the initialization time, divided …
Run Code Online (Sandbox Code Playgroud)

shell find

4
推荐指数
1
解决办法
627
查看次数

标签 统计

find ×1

io-redirection ×1

shell ×1