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.

Andy J.
  • 31
  • 1

1 Answers1

-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
Josef Klimuk
  • 1,596