想象一下,我有一条不存在的路径:
$ ls /foo/bar/baz/hello/world ls: cannot access /foo/bar/baz/hello/world: No such file or directory
但可以说/foo/bar 确实存在。有没有一种快速的方法可以让我确定那baz是路径中的断点?
/foo/bar
baz
我正在使用 Bash。
ls shell bash directory
bash ×1
directory ×1
ls ×1
shell ×1