Score:2

Understanding command ls .*

us flag

I found that command ls .* shows all files and folders in upper directory. It is the same like I do

cd .. 
ls *

But how this achieved with one command ls .*? What is the meaning of . and * in this combination?

Score:4
sd flag

The dot . gets expanded to .. by applying wildcard (*), as you know single dot . represents the current directory while double dot .. shows the parent directory.

So by doing ls .*, you are actually doing.

ls .

and

ls ..

Which list files on the current directory and parent directory. (CMIIW)

bac0n avatar
cn flag
It will list `.files` too.
sudodus avatar
jp flag
+1 @bac0n, worth to also mention for beginners, that files with names beginning with dot are 'hidden' but rather easy to find ;-)
cn flag
It will also list `.subdirectory/`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.