Vin*_*eib 0 filesystems block-device files
从命令行(bash)我想知道给定文件存储在哪个磁盘中。例如:
$ [what filesystem is this file in command] /tmp/example/file
/dev/sda1
Run Code Online (Sandbox Code Playgroud)
您可以通过df在包含可执行文件的目录上使用命令来获得答案。例如,在你的例子中,你可以说
df /tmp/example
Run Code Online (Sandbox Code Playgroud)