Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在用着ls myfolder
ls myfolder
我已经看到ls -lrt -d -1 $PWD/*哪些列出了具有完整路径的文件
ls -lrt -d -1 $PWD/*
问题是如何在文件夹中列出具有完整路径的文件?(不使用cd进入该文件夹)
cd
您可以使用find:
find
find PATH_TO_FOLDER -maxdepth 1 -type f -printf "%p\n"