即使/tmp
没有文件调用something
,搜索它find
也会返回 0:
$ find /tmp -name something
$ echo $?
0
Run Code Online (Sandbox Code Playgroud)
find
找不到任何东西时,如何获得非零退出状态?
我不能在我的 Linux 机器上 umount 而不是 umount -f 请建议?
[root@Linux umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
umount: /mnt/cdrom: device is busy
Run Code Online (Sandbox Code Playgroud)