noddy asked this 2 years ago

How to list files or directories starting with a character using ls command in Linux?

How do i list all files or directories starting with 'a' or 'b' using ls? I tried ls a* and it doesn't work?


pseudoFish 2 years ago

All files starting a

ls a*

 

All files starting with 'a' or 'b'

ls [ab]*