How to quickly display and restore hidden files on Mac OS X

Source: Internet
Author: User

In Mac OS x, you can quickly display and restore hidden files. in Mac OS X, you can click "." Before the file name to hide the file. You may have noticed this before. For example, when you copy a file from mac to PC, you can see the. DS_Store file, but it is not hidden in pc. These files are hidden by default, which has many advantages. Common users have almost no need to modify them, and keeping these files visible will make folders messy. However, you may occasionally find that you need to view these hidden files. For example, you can browse the UNIX file system, process the. htaccess file, or find the file you want to hide after you start. The simplest way to use a terminal to display hidden files is to use a terminal. Open the terminal (in the application -- Utility), copy the following code, and press ENTER defaults write com. apple. finder AppleShowAllFiles-bool YES Finder must be restarted before the application can be modified. In the terminal, enter killall Finder and press enter to restore invisible. in the terminal, enter the following code and press ENTER defaults write com. apple. finder AppleShowAllFiles-bool NO. Similarly, the Finder needs to restart killall Finder www.2cto.com. This method is very simple, but it is troublesome. In the open and save dialog box, in the open and save dialog box, there is a convenient keyboard shortcut to switch between hidden file visibility. In the activity dialog box, press Command + Shift +. (point) to display the hidden file, and then press restore. Set keyboard shortcuts
Although apple has set the convenient shortcut key in the open and save dialog box, it does not exist in the common finder window. Fortunately, we can easily set a shortcut. Open Automator (in the application folder) and select a service. Select "Run Shell Script" in the resource library and drag it to the workspace on the right. Copy the following code to the text box. STATUS = 'defaults' read com. apple. finder AppleShowAllFiles 'if [$ STATUS = YES]; then defaults write com. apple. finder AppleShowAllFiles NOelse defaults write com. apple. the finder AppleShowAllFiles YESfikillall Finder finally selects "no input" from the drop-down menu of the Service Catalog es above, and saves the workflow as "Toggle Hidden Files ". Now, if you open the Finder-service menu, you will see the Toggle Hidden Files option you just created. Now add a keyboard shortcut, open system preference settings-keyboard, and click the shortcut tab. Select the service on the left, click "Toggle Hidden Files", double-click the mouse on the right, and then press the shortcut key you want to set. I am using Command + Shift +. (point ). Www.2cto.com
The only difference between the process of using automatic or in the preceding Shortcut Keys is that the Service elasticsearch mentioned above selects "files and folders" and the Finder on the right. Save. Now, when you right-click the menu in the finder, you will see the "Toggle Hidden Files" option. Author: janedoneway

Related Article

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.