Thursday, May 9, 2024
30
rated 0 times [  30] [ 0]  / answers: 1 / hits: 48860  / 3 Years ago, sun, may 23, 2021, 7:40:04

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.


More From » command-line

 Answers
5

You can use:



find -iname '*.pdf'



with ls maybe:



ls -lR | grep '/|pdf$'


[#40650] Sunday, May 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elopingapo

Total Points: 206
Total Questions: 110
Total Answers: 114

Location: Guam
Member since Tue, Nov 29, 2022
1 Year ago
;