Mac OX hidden folders, files, apps, 2 ways to disk Hide Finder folder, file, application, volume in 2 ways

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.