When I give ls-a in my root folder I can actually see zshrc.
but when I open my root folder in finder using the open . command, It's not visible. Actually many files are missing.
.As you can see the zshrc file is visible here.
I can't find it in the finder.
Asked
Active
Viewed 1,286 times
0
Nibin
- 23
-
1By default, the Finder does not show dot files. To change that, see https://apple.stackexchange.com/questions/250638/how-to-reveal-dot-files-in-finder – lhf Apr 21 '21 at 18:44
1 Answers
1
According to Wikipedia:
In computing, a hidden folder (sometimes hidden directory) or hidden file is a folder or file which filesystem utilities do not display by default when showing a directory listing.
The ls command, of course, is a directory listing. The -a option "do not ignore entries starting with ." (ls man page)
So, yes the file is invisible, or hidden. But in the terminal, you are requesting to see all, including invisible or hidden, files.
agarza
- 2,274
-
Note that the Finder (and macOS GUI in general) hides files that start with "." and/or have the
hiddenflag set. That's why, for example, the Library folder (under your home folder) is hidden. To see flags includinghidden, usels -lO. – Gordon Davisson Apr 21 '21 at 23:21