Search code examples
linuxterminaldebianls

list element starting with 'a' ls command?


I have a repectory "apache2/mods-available". I want to list elements in 'mods-available' but only files beginning with 'a' and have the file extension '.conf' and list one file per line.

I tried like this :

user$ ls *a && *.conf ./apache2/mods-available

It didn't work.. any idea?


Solution

  • Like this:

    ls apache2/mods-available/a*.conf