• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TheMacBeginner

Mac tips, tricks and guides

  • Home
  • Mac Guides
  • Hide & unhide Dock
  • Resize Finder

How to Show/Hide hidden files in Finder – Mac OS

By Chaitanya | Filed Under: Mac

In this guide we will see how to show or hide hidden files in Mac OS. All you need to do is type a simple command in terminal. Later, in this guide we will also see how to create aliases to make things faster so that the users can quickly show and hide hidden files.

Show hidden Files in Finder using Terminal

  1. Open Terminal. Go to Finder ❯ Applications ❯ Utilities ❯ Terminal. You can also use spotlight search to open terminal quickly, press Command + Space, type Terminal and hit return.
  2. Type the following command in terminal and hit return.
     defaults write com.apple.finder AppleShowAllFiles -bool TRUE;killall Finder

    show hidden files finder

  3. Now you can see hidden files in finder.

Hide hidden Files in Finder using Terminal

If you want to go back to hide your hidden files then you can do so by typing following command.

defaults write com.apple.finder AppleShowAllFiles -bool False;killall Finder

hit return. This will again hide your hidden files.
hide hidden files finder

What to do when you need to switch between show and hide frequently? Use Aliases

For those who wants to switch between show and hide often, writing these commands again and again could be irritating. To simplify this process you can create aliases, they are just shortcuts to your command line commands that your write on terminal, so instead of writing the whole command every time you can create an alias for your command. This way you can run the command by just typing alias name.

There are two types of aliases: temporary and permanent. As the name suggests the temporary aliases lasts for the current terminal session, they are vanished as soon as you close the terminal, however you can use them any number of times until the terminal is not closed. On the other hand, permanent alias lasts forever, you need to edit .bash_profile file to record permanent aliases.

Note: In this guide, I will only share the process of creating temporary alias as the process of creating permanent alias is little bit complex and not suitable for beginners.

So, back to the point. To create temporary alias for show and hide command do this:
Type this in terminal

alias showme='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder’

hit return

alias hideme='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder'

hit return

That’s it guys. Now you can use them any number of times by just typing showme and hideme in terminal. Alias showme will show hidden files and hideme will hide hidden files. But remember that once you close the terminal these alias would be vanished and you need to create them again in order to use them.

Related Posts

  • Activity Monitor: Mac Task Manager
  • Rename files and folders on Mac using Terminal
  • Open Current working directory in Finder from Terminal – Mac OS X
  • How to Quickly restart the Mac Finder
  • How to rename files and folders on Mac

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Search this Website

Featured Mac Guides

How to Exit Full Screen in Mac OS X

How to hide and unhide the Dock on Mac

How to Change the Position of Dock on your screen

Remove Applications from the Dock on Mac

How to switch between different windows of same Application

How to switch between Open Applications in Mac OS X

Copyright © 2017 - 2019 TheMacBeginner - All Rights Reserved || Sitemap