是否有任何内置的 Linux 命令来实时显示目录的内容?

Gok*_*u__ 8 linux bash

是否有任何内置的 Linux 命令可以实时显示目录的内容?类似于“tail -f file_name”命令,可以实时显示文件的内容。

Chr*_*aes 7

您可以使用watch. 它不是完全实时的,但足够接近(高达十分之一秒):

watch -n0.1 ls
Run Code Online (Sandbox Code Playgroud)

从手册:

-n, --interval seconds
          Specify update interval.  The command will not allow quicker than 0.1 second interval, in which the smaller values are converted.
Run Code Online (Sandbox Code Playgroud)