💻 Software
How to get a linux directory listing for files beginning with a certain letter that doesn't descend into subdirectories?
Fresh7 days ago
Mar 15, 2026118875 viewsConfidence Score0%
0%
Problem
Suppose you are in a directory that contains many files and many subdirectories. You want to get a directory listing of all the files beginning with the letter "d". You type and what you get back is mostly files in sub-directories (in particular, files in subdirectories that begin with "d"). How do…
Error Output
ls d*
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to get a linux directory listing for files beginning with a certain letter that doesn't descend into subdirectories?
Low Risk
Ah, I just found it on the 6th reading of the man page. It's the not-so-sensibly named "directory" parameter
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix