When I execute a command ls *
, it will show
- files in the current directory
- directories in the current directories
- files and directories in the directories in the current directories.
When I do use ls
I don't want to see inside the directories in the current directory. I'm bit confused because for more than 8 years I've been using ubuntu, I've never seen anything like this before.
Is this how ls
should work? Is there a way to stop 3
from happening?
For example, if I have
file1.file
folder1
folder2
folder3
textfile1.txt
I want ls f* to show only
file1.file
folder1
folder2
folder3
Ubuntu 20.04 LTS