3

How do I display all files where its extension start with a certain letter using ls command?

I tried doing ls d* but that display all files starting with letter d, not extension starting with letter d.

2
  • 4
    How about ls *.d*? Sep 18, 2019 at 3:52
  • @AndyJ. You might eliminate some false positives by using the full extension or extensions. Can you give more details regarding exactly what you are looking to display?
    – andrew.46
    Sep 18, 2019 at 5:02

1 Answer 1

-1

You will need to use asterisk. Press "shift+8" to get it. This "*" wildcard represents all the characters. So, the code can be:

ls *.<your extension>

Example:

ls *.txt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .