I want to list all PDF files in the directories of the current working directory. What command can do this?
I remember a combination of ls
and */*.pdf
but don't remember what exact combination.
command linels
I want to list all PDF files in the directories of the current working directory. What command can do this?
I remember a combination of ls
and */*.pdf
but don't remember what exact combination.
Best Answer
You can use:
find -iname '*.pdf'
with
ls
maybe:ls -lR | grep '/\|pdf$'