简体   繁体   中英

using 'ls' with options and folder and get full path

i'm using ls myfolder

and I've seen ls -lrt -d -1 $PWD/* which lists files with full path

the question is how do i list files with full path in a folder? (without using cd to go inside that folder)

您可以使用find

find PATH_TO_FOLDER -maxdepth 1 -type f -printf "%p\n"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM