ls automatically does a recursive ls of dir

when i have a file and directry starting with same letter and i do a ls it does a recursive ls..

example

output of ls -ltr

-rw-r--r-- 1 root system 0 Jul 16 15:26 a
drwxr-xr-x 2 root system 256 Jul 16 15:26 aa
drwxr-xr-x 2 root system 256 Jul 16 15:26 bb
-rw-r--r-- 1 root system 0 Jul 16 15:26 b

output of ls -ltr a*
-rw-r--r-- 1 root system 0 Jul 16 15:26 a

aa:
total 0
-rw-r--r-- 1 root system 0 Jul 16 15:26 insideaa

it automaticaly goes inside aa dir and display the contents

i just wanted the files or dir names startring with a* to be displayed

Try this:

ls -d a*

thanks... :slight_smile: