Often need to hide some folders in the home directory or something,
The first thought of course is: in front of the folder to be hidden add "." (Leading dot), this usage of course can be
Accustomed to the LINUX/GNU system, the basic habit of using this method
However, I found that the Mac type/users/$USER/directory of the library is hidden, but there is no leading dot, stating
Mac has a way to hide directories other than leading dot
1. Using Onyx, this is in GUI form [under Utilities->visibility]
2. Use the command parameter settings (for folders, files)
Chflags Hidden < files [Clip] path > #隐藏文件夹 {Finder cannot see}
Chflags Nohidden < files [Clip] path > #去掉隐藏属性 {Finder cannot see}
You can test it.
With chflags hidden fgh.txt [file]
The Finder can't see it.
Chflags Hidden Backup [folder]
The Finder does not see
Of course, if you use terminal, natural LS is not reference to this property, so that the hidden file [clip] is displayed, LS is to identify the leading dot this way
Reference:
1. http://www.cnblogs.com/lm3515/archive/2010/12/08/1900271.html
2. http://wenku.baidu.com/view/86f0e059804d2b160b4ec0da.html
Mac OX hidden folders, files, apps, 2 ways to disk Hide Finder folder, file, application, volume in 2 ways