noddy asked this 7 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?


Guest 1 year ago

-ABC

ls -lrt -ABC

pseudoFish 7 years ago

All files starting a

ls a*

 

All files starting with 'a' or 'b'

ls [ab]*