The command
ls .*
when run gives as output the following :
- All the files in the current directory starting with a . (hidden files)
- All the files in the hidden directories present in the current directory
- All the files in the current directory
- All the files in the parent directory
Why does the command
ls *.
not display :
- All the files in the current directory
- All the files in the parent directory
Reason I am thinking so is : The regular expression *. should match both . and .. So ls should be run on both and thus the output which I am expecting should be displayed