• Tech
  • News
  • Health

Easy Ways to Hide Files and Show Hidden Files on Mac OS X

27Shares
27.3KViews

In this article, we explain different ways to hide Files and show Hidden Files on Mac OS X.

Macs offer a way to hide files and folders, just like other operating systems. But Mac OS X hides these options and doesn’t make it as easy as it is on Windows and Linux.

Have some private files that you don’t want to risk anyone else seeing? You can hide files in Max OS X using Terminal. The tool provides text-based access to the operating system, in contrast to the mostly graphical nature of the user experience of macOS, so not everyone wants to tamper with it.

To hide a file or folder, you’ll need to set the “hidden” attribute for it. The Finder and other Mac apps will then ignore and not display this file or folder by default.

The files you won’t be able to see by default are typically preceded by a full stop, for example .htaccess file, .bash_profile or .svn directory. Folders like /usr, /bin, and /etc are hidden away, too. And the Library folder, which contains application-support files and some data, is also tucked out of sight.

COPYRIGHT_NOVA: Published on https://www.novabach.com/easy-ways-to-hide-files-and-view-hidden-files-on-mac-os-x/ by Daniel Barrett on 2022-05-29T23:10:18.000Z

Rather than hiding an individual file — although you can do that — you may want to create a hidden folder. We’ll do that for this example, although this trick will also work to hide individual files.

A quick and easy way to find secret files within a folder is to hold down Cmd + Shift + . (dot or period), but there are other options you might like to consider, as we explain below.

How to Hide Files and Show Hidden Files on Mac OS X

Press the Command and Space keys simultaneously. Type the word “Terminal” and press Enter. A terminal window will open.

In the window, type in this command:

chflags hidden

Easy Ways to Hide Files and Show Hidden Files on Mac OS X
Easy Ways to Hide Files and Show Hidden Files on Mac OS X

Drag-and-drop a folder or file from the Finder into the terminal window.

The path of the file or folder will appear in the terminal. Press Enter to run the command and the file or folder will vanish. It’s still there — it’s just hidden, so the Finder won’t show it by default.

Also read: How To Easily Format an SD Card on Mac

Access a Hidden Files or Folder

Want to quickly access a hidden folder from the Finder? The easiest way is to click the Go menu in the Finder and select Go to Folder.

Plug the path of the folder into the dialog box and click Go or press Enter. The ~ stands for your user folder, so if you had a folder named SecretStuff on your desktop, you’d enter ~/Desktop/SecretStuff. If it was in Documents, you’d enter ~/Documents/SecretStuff.

Easy Ways to Hide Files and Show Hidden Files on Mac OS X
Easy Ways to Hide Files and Show Hidden Files on Mac OS X

Although the folder is hidden and won’t appear normally in the Finder or save dialogs, you can quickly access it this way. Any files you store in this folder are effectively hidden, too — no one can accidentally click their way to the folder, but they’ll appear in the Finder if you go there directly.

Show Hidden Files in the Finder

The Finder does offer an option to view hidden files. However, this isn’t a graphical option — you have to enable it with a terminal command and restart the Finder for your changes to take effect.

To view hidden files in the Finder, open a Terminal window and run the following commands in it, pressing Enter after each one:

  • defaults write com.apple.finder AppleShowAllFiles TRUE [Press Return] killall Finder
View-files-macos.png
View-files-macos.png

This command tells Finder to show hidden files and then restarts it. It’ll show all those hidden files and folders once you’re done. They appear partially transparent to distinguish hidden files and folders from normally unhidden ones.

Want to stop Finder from showing hidden files and folders? Run the following command to disable this option and restart the Finder:

  • defaults write com.apple.finder AppleShowAllFiles FALSE [Press Return] killall Finder

Also read: iPhone Photos Not Showing Up On PC or Mac? Fix Now!

Unhide a File or Folder

Want to unhide a file or folder? Run the same command you ran before, but change “hidden” to “nohidden.” In other words, type the following command into the terminal, typing a space after it:

chflags nohidden

If you remember the exact path of the folder or file, you can type it into the terminal. If you don’t, you can use the above trick to display hidden files and folder in the Finder and drag and drop that hidden file or folder into the Terminal, as you did earlier.

(You can also press the up arrow key at the terminal to cycle through previous commands, locating the command that made the file or folder hidden. Use the left arrow key to go to the “hidden” part of the command and change it to “nohidden,” and then press Enter.)

Type Enter afterward and the file or folder will become unhidden, so you can access it normally.

Bottom Line

Hiding Files or Folders can be useful if you share a computer with someone, but someone who goes looking for these hidden files and folders can easily find them. It’s not a foolproof way to protect your files and folders from others, but encryption is.

Share: Twitter | Facebook | Linkedin

About The Authors

Daniel Barrett

Daniel Barrett

Recent Articles

  • Here Are A Number Of Easy Tips To Secure A Crypto Wallet!

    Tech

    Here Are A Number Of Easy Tips To Secure A Crypto Wallet!

    There are different ways in which one can generate a side income along with permanent income, and there is one way that is popular in this modern world is a crypto investment.

  • Some Top Tips For Selecting The Best Crypto Wallet!

    Tech

    Some Top Tips For Selecting The Best Crypto Wallet!

    Bitcoin is an asset that is the most acceptable thing in this modern world, and it contains all that a user needs in the payment mode or investment.

  • IoT Has Shaken Up The IGaming Industry In An Immensely Positive Way: Here Is How

    IoT

    IoT Has Shaken Up The IGaming Industry In An Immensely Positive Way: Here Is How

    The Internet of Things is gradually gaining traction in our everyday lives. We are now living in a world where our cars can talk to us, our thermostats can be controlled remotely, and even our homes can be monitored while we are away.

  • Logitech Quickcam Vision Pro Driver Windows 7 - Video Chat With A Single Click

    Gadgets

    Logitech Quickcam Vision Pro Driver Windows 7 - Video Chat With A Single Click

    If you want to know more about the Logitech Quickcam Vision Pro Driver Windows 7, then this is the article for you. Logitech QuickCam Vision Pro, which is one of the company's most high-end models of webcams, as well as our analysis of its performance, benefits, and technical specifications in greater detail. Make a video call with the click of a button using Logitech QuickCam Vision Pro with 720p HD quality that will provide pure picture sharpness and clarity that is so real all thanks to Carl Zeiss optical technology.

  • Blackberry Z10 Software Problem - Easy Steps To Fix Them

    Android

    Blackberry Z10 Software Problem - Easy Steps To Fix Them

    Just like any other phones, you probably have encountered a Blackberry Z10 software problem. In this article we will discuss more about it. The BlackBerry Z10 runs the new BlackBerry 10 (currently 10.3.3) QNX-based mobile operating system. BB 10's user interface is based on the concept of direct manipulation, which employs multi-touch gestures. Interaction with the OS includes a variety of multi-touch gestures, each with its own definition in the context of the BB10 operating system and its multi-touch interface.

  • Best Gaming Chair On Amazon - Find The Best Chair Online

    Gaming

    Best Gaming Chair On Amazon - Find The Best Chair Online

    If you are curious about the best gaming chair on Amazon, then continue reading. There's no reason to overlook the importance of a good desk chair, whether you're a gamer or an office worker. If you have an ergonomic chair instead of a lumpy couch, you will be more relaxed and at ease. If the chair you're sitting in isn't providing neck and back support, you should get a new one right away. Long periods of sitting in an uncomfortable chair could be hazardous to one's health. Furthermore, your backbone will undoubtedly suffer. Aside from the obvious issue of your health, there are other potential consequences of an uncomfortable chair.

  • OSRS Unlocking Guardians Of The Rift

    Gaming

    OSRS Unlocking Guardians Of The Rift

    Welcome to yet another of our gamer guides! One page at a time, we offer gamers the opportunity to better their skills and soar to new heights of excellence.

  • All The Different Ways To Gamble Online: Why People Prefer To Gamble On Their Smartphones

    Tech

    All The Different Ways To Gamble Online: Why People Prefer To Gamble On Their Smartphones

    Technology has blessed us with an infinite number of options. Today, nearly everything exists on the internet.

  • 4 Best Apps For Budgeting

    Software & Apps

    4 Best Apps For Budgeting

    Keeping a personal budget is a great idea. You will be aware of the movement of money, optimize expenses and find a source for investments. The main thing is to choose a convenient way to manage your personal budget and always remember what you are doing it for. You'll learn what budgeting apps are available for Mac, iPad, and iPhone in this article. Without further ado, let's get started.

  • New Technology Is Restoring Cells In Pigs After Death

  • Ultra-Processed Foods - How It Can Lead To Colorectal Cancer

  • New Pneumonia-fighting Microbots that Could Spell The End Of The Disease

  • Big Pharmas Are Developing New Treatments To Prevent Blood Clots For A $55 Billion Prize

  • A Drug From Two Biotech Companies Slowed Cognitive Decline By 27%