Thursday, May 16, 2024
30
rated 0 times [  30] [ 0]  / answers: 1 / hits: 48862  / 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
elopingapo questions
Fri, Sep 10, 21, 17:52, 3 Years ago
Tue, May 24, 22, 00:42, 2 Years ago
Sat, Apr 23, 22, 03:16, 2 Years ago
Fri, Jan 13, 23, 06:41, 1 Year ago
;