How To View Hidden Files On Mac: 4 Ways To Do It

Before we dive in

Before we dive in, let's make sure you stay safe online. We created SpyHunter because your security matters to us.

Protect your computer today — download SpyHunter right here! Check out our top tips below to keep your computer safe and secure.

Download SpyHunter

Have you ever needed to dig a little deeper into your Mac to troubleshoot an issue or recover a misplaced file?

Hidden files on your Mac, which are usually tucked away to prevent accidental modifications, can sometimes hold the key to solving such puzzles.

In this article, I will guide you through the process of viewing hidden files on your Mac using built-in tools.

Whether you’re a seasoned user or new to macOS, understanding how to safely access these hidden files is crucial for maintaining system stability and security.

Ready to become a pro at handling hidden files? Let’s get started:

Why might files and folders be hidden on your Mac?

Understanding why macOS hides certain files and folders can help you decide when and how to access them.

Here are the reasons:

  • Protecting System Integrity: Keeping system and configuration files invisible prevents users from accidentally removing or modifying them, which could damage the operating system.
  • Enhancing Security: Hiding sensitive files adds an extra layer of protection against unauthorized access, safeguarding personal information and security settings.
  • Application Support: Many apps store essential data in hidden folders like the Library folder. These hidden files are crucial for app functionality but aren’t needed for everyday use.
  • Simplifying User Experience: Hiding system structures allows the average Mac user to navigate their files and folders more efficiently without being overwhelmed by the technical stuff.
  • Custom User Preferences: Users may choose to hide files manually to keep personal data private or to declutter their workspace.

Knowing these reasons can help you appreciate the importance of hidden system files and decide when to view them on your Mac. However, always be cautious to avoid impacting your system’s performance or security.

How to show hidden files on Mac via Finder?

If you need to reveal hidden files on your Mac without using Terminal or third-party tools, you can easily do so directly through Finder. Here’s how:

  1. Click on the Finder icon in your Dock to launch a new Finder window.
  2. Go to the Macintosh HD folder in the Finder sidebar.
  3. Hold Command (⌘) + Shift (⇧) + Dot (.) simultaneously.
  4. Hidden files and folders will now appear semi-transparent in the Finder window.
  5. To hide the hidden files and folders again, simply repeat step 3.
show hidden files and hidden folders using the mac finder

This method is quick and straightforward, enabling Mac users to access hidden files without altering system settings or using the Terminal.

How to show hidden files using keyboard shortcuts?

A convenient way to show hidden files on your Mac is by using a simple keyboard shortcut that works within Finder:

  1. Open Finder by clicking on the Finder icon in your Dock.
  2. While in Finder, press Command (⌘) + Shift (⇧) + Dot (.).
  3. All the hidden files and folders will become visible, appearing slightly grayed out compared to regular files.
  4. You can use the same command from the keyboard to toggle the visibility off.
display hidden files using keyboard shortcut

This keyboard shortcut is effective across various directories, making it easy to access hidden files and folders as needed.

How to view hidden folders and files using Terminal?

If you are comfortable with the command line, the Terminal app offers a powerful way to reveal hidden files and folders on Mac:

  1. Open Terminal located in Applications > Utilities. Alternatively, use Spotlight by pressing Command (⌘) + Space, type Terminal in the text box, and press Enter.
  2. To show hidden files, type or paste the following Terminal command and press Enter: defaults write com.apple.Finder AppleShowAllFiles true
  3. Type the command killall Finder and press Return to relaunch Finder and apply the changes:
the defaults write com.apple.Finder AppleShowAllFiles true command in terminal window
  1. Open a Finder window to see that hidden files are displayed.
  2. In order to hide the files again, repeat the steps above, but change the command in step 2 to: defaults write com.apple.Finder AppleShowAllFiles false
  3. Then restart Finder with killall Finder
the defaults write com.apple.Finder AppleShowAllFiles false command in terminal window

Using the defaults write command modifies Finder’s preferences to show hidden files. The killall Finder command restarts Finder to apply the new settings.

In addition to the basic commands that can show hidden files, you should be aware of a couple more useful commands:

  • chflags hidden: This command can hide files without altering the visibility of other hidden files. To use this:
    • Type chflags hidden [Press Space]
    • Drag the file you want to hide into the Terminal window to autofill its path
    • Press Enter
hide files with chflags hidden
  • If you ever need to reverse the hidden status of specific files:
    • Use chflags nohidden [file path]
    • Replace [file path] with the path of the file you wish to make visible again
    • Press Enter
unhide files with chflags nohidden

By mastering these commands, you can ensure your data remains organized and only visible when necessary.

How to find and show the Library folder?

The Library folders contain essential system files, application support data, and user settings. Apple hides these folders by default to prevent accidental changes.

Here’s how you can access ~/Library:

Method 1: Access the hidden ~/Library folder via Finder’s Go menu

  1. Open Finder by clicking on the Finder icon in your Dock.
  2. In the menu bar at the top of the screen, click on Go.
  3. Hold down the Option (⌥) key. The Library folder will appear in the dropdown menu.
  4. Click on Library to access the hidden folder.
the library folder option in the mac finder go menu

Method 2: Permanently show the Library folder

  1. Start by opening Finder from your Dock.
  2. In Finder, click on Go > Home or press Shift (⇧) + Command (⌘) + H.
home folder menu item-in mac finder
  1. Click on View in the menu bar and select Show View Options, or press Command (⌘) + J.
show view options menu item in mac finder
  1. In the View Options window, check the box next to Show Library Folder.
show library folder option

The Library folder will now be permanently visible in your Home directory, making it easier to access important files and other hidden data.

Tips to keep your Mac organized and secure

Keeping your Mac organized and secure enhances its performance and protects your personal information from potential threats.

Regularly cleaning up system junk and organizing your data can significantly help in maintaining your Mac’s health.

Furthermore, robust cybersecurity measures are crucial. Software like SpyHunter, which provides comprehensive malware removal and privacy protection, helps maintain your Mac’s security integrity.

  1. Download SpyHunter now and follow the on-screen instructions to install it.
  2. Configure SpyHunter to perform regular scans, ensuring your system is continually monitored for threats.
  3. Regularly update SpyHunter to ensure that it is equipped with the latest malware definitions.
remove malware, trojans, and other threats with spyhunter

By including these steps in your routine, you can maintain optimal performance, free disk space, and keep your sensitive information secure.

FAQs

Is showing hidden files on my Mac safe?

While it is generally safe to view hidden files, modifying or deleting them can be risky.

Hidden files and folders often contain essential system files and configuration data crucial for your operating system’s stability.

Accidentally deleting or altering these files may lead to system errors or data loss. Proceed with caution and back up important data before making changes.

Are there third-party file managers that can show hidden files?

Yes, several third-party file managers and utilities can help you manage hidden files more conveniently.

Such tools may offer advanced features for handling files and folders on your Mac. Keep in mind that third-party file managers may come with additional costs.

Bottom line

Understanding how to view hidden files on a Mac empowers you to take complete control of your operating system.

Knowing how to find a hidden file is a valuable skill for any Mac user, whether troubleshooting issues, customizing settings, or accessing specific data.

Remember that hidden files are concealed for a reason—they often contain sensitive information.

Always proceed with caution when modifying or deleting these files and folders to avoid unintended consequences.

Utilize the methods that best suit your comfort level, whether it’s through Finder, keyboard shortcuts, or the Terminal app.

By following the steps outlined in this guide, you can safely manage hidden content on your Mac, ensuring a smooth and efficient computing experience while keeping your files and folders organized and secure.

Share this post on your favorite social media
Keep Your Mac Fast and Secure
Optimize your Mac and stay malware-free with SpyHunter

For a better understanding of our policies, please review our Free Trial Offer below, EULA, and Privacy/Cookie Policy.

SpyHunter Free Trial: Important Terms & Conditions

The SpyHunter Trial version includes, for one device, a one-time 7-day Trial period for SpyHunter 5 Pro (Windows) or SpyHunter for Mac, offering comprehensive malware detection and removal functionality, high-performance guards to actively protect your system from malware threats, and access to our technical support team via the SpyHunter HelpDesk. You will not be charged upfront during the Trial period, although a credit card is required to activate the Trial. (Prepaid credit cards, debit cards, and gift cards are not accepted under this offer.) The requirement for your payment method is to help ensure continuous, uninterrupted security protection during your transition from a Trial to a paid subscription should you decide to purchase. Your payment method will not be charged a payment amount upfront during the Trial, although authorization requests may be sent to your financial institution to verify that your payment method is valid (such authorization submissions are not requests for charges or fees by EnigmaSoft but, depending upon your payment method and/or your financial institution, may reflect on your account availability). You can cancel your Trial by contacting EnigmaSoft’s payment processor (identified in your confirmation email) or EnigmaSoft directly no later than two business days before the 7-day Trial period expires to avoid a charge coming due and being processed immediately after your Trial expires. If you decide to cancel during your Trial, you will immediately lose access to SpyHunter. If, for any reason, you believe a charge was processed that you did not wish to make (which could occur based on system administration, for example), you may also cancel and receive a full refund for the charge any time within 30 days of the date of the purchase charge. See FAQs.

At the end of the Trial, you will be billed upfront immediately at the price and for the subscription period as set forth in the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details) if you have not timely canceled. Pricing typically starts at $72 for 3 months (SpyHunter Pro Windows) and $42 for 3 months (SpyHunter for Mac). Your purchased subscription will be automatically renewed in accordance with the registration/purchase page terms, which provide for automatic renewals at the then applicable standard subscription fee in effect at the time of your original purchase and for the same subscription time period, provided you’re a continuous, uninterrupted subscription user. Please see the purchase page for details. Trial subject to these Terms, your agreement to EULA/TOS, Privacy/Cookie Policy, and Discount Terms. If you wish to uninstall SpyHunter, learn how.

For payment on the automatic renewal of your subscription, an email reminder will be sent to the email address you provided when you registered before your next payment date. At the onset of your trial, you will receive an activation code that is limited to use for only one Trial and for only one device per account. Your subscription will automatically renew at the price and for the subscription period in accordance with the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details), provided that you are a continuous, uninterrupted subscription user. For paid subscription users, if you cancel, you will continue to have access to your product(s) until the end of your paid subscription period. If you wish to receive a refund for your then current subscription period, you must cancel and apply for a refund within 30 days of your most recent purchase, and you will immediately stop receiving full functionality when your refund is processed.

For CALIFORNIA CONSUMERS, please see the notice provisions:
NOTICE TO CALIFORNIA CONSUMERS: Per the California Automatic Renewal Law, you may cancel a subscription as follows:

  1. Go to www.enigmasoftware.com and click the "Login" button at the top right corner.
  2. Log in with your username and password.
  3. In the navigation menu, go to "Order/Licenses." Next to your order/license, a button is available to cancel your subscription if applicable. Note: If you have multiple orders/products, you will need to cancel them on an individual basis.

Should you have any questions or problems, you can contact our EnigmaSoft support team by phone at +1 (888) 360-0646 (USA Toll-Free) / +353 76 680 3523 (Ireland/International) or by email at support@enigmasoftware.com.
How do you cancel a SpyHunter Trial? If your SpyHunter Trial was registered via MyCommerce, you can cancel the trial via MyCommerce by logging into the MyAccount section of MyCommerce (see your confirmation email for further details). You can also contact MyCommerce by phone or email to cancel. To contact MyCommerce via phone, you can call +1-800-406-4966 (USA Toll-Free) or +1-952-646-5022 (24x7x356). You can contact MyCommerce by e-mail at ordersupport@mycommerce.com. You can easily identify if your trial was registered via MyCommerce by checking the confirmation emails that were sent to you upon registration. Alternatively, all users may also contact EnigmaSoft Limited directly. Users can contact our technical support team by emailing support@enigmasoftware.com, opening a ticket in the SpyHunter HelpDesk, or calling +1 (888) 360-0646 (USA) / +353 76 680 3523 (Ireland/International). You can access the SpyHunter HelpDesk from SpyHunter's main screen. To open a support ticket, click on the "HelpDesk" icon. In the window that appears, click the "New Ticket" tab. Fill out the form and click the "Submit" button. If you are unsure of what "Problem Type" to select, please choose the "General Questions" option. Our support agents will promptly process your request and respond to you.

———

SpyHunter Purchase Details
You also have the choice of subscribing to SpyHunter immediately for full functionality, including malware removal and access to our support department via our HelpDesk, typically starting at $42 for 3 months (SpyHunter Basic Windows) and $42 for 3 months (SpyHunter for Mac) in accordance with the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details). Your subscription will automatically renew at the then applicable standard subscription fee in effect at the time of your original purchase subscription and for the same subscription time period, provided you’re a continuous, uninterrupted subscription user and for which you will receive a notice of upcoming charges before the expiration of your subscription. Purchase of SpyHunter is subject to the terms and conditions on the purchase page, EULA/TOS, Privacy/Cookie Policy and Discount Terms.

———

General Terms
Any purchase for SpyHunter under a discounted price is valid for the offered discounted subscription term. After that, the then applicable standard pricing will apply for automatic renewals and/or future purchases. Pricing is subject to change, although we will notify you in advance of price changes.
All SpyHunter versions are subject to your agreeing to our EULA/TOS, Privacy/Cookie Policy, and Discount Terms. Please also see our FAQs and Threat Assessment Criteria. If you wish to uninstall SpyHunter, learn how.