Hide Mac Apps Terminal

Like Windows, macOS also has secret files that are hidden so that a user doesn’t meddle with it but sometimes you need to access the hidden files.

Using

I don't mind the app icon showing up in the dock but I have some users who tend to want to close the terminal window which cancels what the script is doing. I've been googling this and there doesn't seem to be a simple solution. Checking 'Hidden' in the login items does not hide the window. Mac Finder Showing Hidden Files. Follow the steps below to view hidden files in Finder on Mac. How to Hide and Show Hidden Files on Mac Using Terminal You can easily hide and find or show hidden files on Mac using Terminal commands. Since these commands work pretty well and without any effort, you can master them without any hassle.

If you want to tweak a setting to perform a troubleshooting step (like finding a log or deleting a preference file), you need to make some changes in those hidden files. Some of you also want to get rid of the files from the hidden folder as they take way too much space.

The Dock doesn't actually hold an app or document. Instead, the Dock contains aliases, represented by an item's icon. These icons are shortcuts to the actual apps and documents, which may be located somewhere else within your Mac’s file system. As an example, most apps reside in the Applications folder. After this the app's dock icon will not be shown anymore. Keep in mind that you will need to use the Activity Monitor or Terminal (killall ) to quit the app if you close the window. If closing the window quits the app, you can press cmd + h to hide the window. This should make your app completely invisible.

So the question is “how to access the hidden files?”

Well, we have a solution for it. With the help of terminal and simple command, you can get your Mac’s hidden files and folders.

Must Read:How To Rename Multiple Files At Once On Mac

In this article, we have discussed how to view hidden files and folders on Mac with Terminal.

Launch Terminal

  1. You can launch Terminal via Spotlight.
  • Go to Finder bar and look for a magnifying glass like icon and click on it to open Spotlight.
  • Type Terminal, Spotlight will open a terminal for you.
  1. You can also locate Terminal:
  • On OS X, open your Applications folder.
  • Go to Utilities folder.
  • Open the Terminal application.

Must Read: Quitting Apps on Mac Just Got Handier!

View Hidden Files and Folders:

  • Now that you have accessed Terminal.
  • Type or copy/paste the following commands into the Terminal window:

“defaults write com.apple.finder AppleShowAllFiles TRUE” (This command tells the Finder to show all files, irrespective of the hidden flag setting )

“killall Finder” (This command will stop and restart Finder, so that the changes can take place)

  • Press the return or enter key after you enter each line of text.
  • These commands will allow you to use Finder to find all the hidden files on your Mac.

Note: It is normal to see the Desktop screen vanish and reappear while executing the commands.

Once these commands are executed, you will be able to see a file named.DS_Store. The .DS_Store file consists of information about the folder, you are currently in, including the icon, the location of the window and other bits of information the system requires. Moreover, you get the access to the important hidden folders such as the Library folder inside your Home folder. The Library folder contains many files and folders which is related to a particular apps and services that you use on your Mac.

Note: It is recommended to take a good look at your Library folder and target the issue that you are having, then make any changes.

Hide The Files:

Now that you have seen the hidden folders or you are done with the troubleshooting, you must hide the folders to keep them safe.

  • Open Terminal (Follow the steps to launch Terminal)
  • Type the below commands into the Terminal window:

“defaults write com.apple.finder AppleShowAllFiles FALSE?”

“killall Finder”

Press return key or enter key to execute the command and done, the hidden files are hidden once again.

In this way, you can hide and show the hidden folders of Mac with the help of Terminal. Try it and let us know what worked for you.

Next Read: How To Use Mac’s General Preferences Pane

Watch this space for cool tech tips!

What Do You Think?
Responses
Best FTP client for Mac
Get ForkLift, a smart and efficient Finder alternative.

When you look at your desktop, or inside any folder for that matter, on your Mac you’ll see a number (one that will vary depending on how well-organized you are) of file and folder icons. What all of us have in common, however, is a huge range of system files that are hidden just out of view.

Easy way to show hidden files

Try Setapp to make all your files visible on a Mac. With the tools we offer, nothing gets lost in the shuffle.

Those of us who have lived online for long enough will remember the Delete System32 hoax, with which trolls encouraged naive PC users to delete their Windows 2000 system directory. It’s not a shock that, since those days, developers have taken more care to hide away files that are essential to their operating systems.

There are, however, times when you need to access those files. Most of them are hidden away in the ~/Library folder, but the truth is that the average Mac holds a treasure trove of files and folders that you either no longer need or may want to access for troubleshooting purposes.

Is it normal that 'System' takes up 90GB+ of storage? What does it contain? How to get your System folder under control?

Three Ways to See Hidden Files on Mac

There’s good news for anyone out there who’s looking to access hidden files on their Mac: you can do exactly that, in a number of different ways, by arming yourself with a little bit of knowledge. There are a couple of Finder augmentation and replacement apps, for example, that make the process as easy as clicking a single button.

Before kicking off, however, it’s important to highlight that you should play it safe when digging through hidden files on your laptop or desktop. Unless you know exactly what you’re looking for you can do some serious damage to your operating system, so you’ll want to proceed with caution. After all, these files are hidden for a reason!

See hidden files on Mac via Finder

As mentioned above, it doesn’t take much to make the hidden files on your Mac visible. In fact, you can check out all of the hidden files on your Mac by following just three easy steps:

Using Terminal On Mac

  1. In Finder, open up your Macintosh HD folder
  2. Press Command+Shift+Dot
  3. Your hidden files will become visible. Repeat step 2 to hide them again!

This process will also work elsewhere, including your Documents or Applications folders. However, if you know what you’re looking for is in your ~/Library folder and would rather jump straight into that then you can take the following steps instead:

  1. In Finder, hold down Alt and click Go at the top of your screen
  2. Click on Library to open up the, normally hidden, folder

Be prepared for one very cluttered looking Desktop if you decide to uncover all the hidden files there. If you’re anything like the average Mac user, most of what you’ll find will be made up of system files and autosaved Microsoft Word documents!

Some users have reported success finding documents that they thought were lost forever after their Mac crashed without saving, which is always a useful tip to have in the back pocket.

Unhide files on Mac with Terminal commands

Terminal, a Mac command-line interface, is included in macOS by default and allows you to use command prompts to control your Mac instead of following a potentially complex series of instructions to do the same thing in Finder.

If you’re already familiar with using Terminal, then you might prefer to run the following script to reveal your hidden files:

  1. Open Terminal
  2. Enter the following: defaults write com.apple.Finder AppleShowAllFiles true [Press Return] killall Finder
  3. To hide files again, change the “true” in the step above to “false”

It doesn’t matter too much whether you use Terminal or Finder to make the hidden files on your Mac visible, though you might prefer the latter if you’ve never run scripts on Terminal before, as both routes accomplish the same thing.

One reason you might opt to use Terminal is that it allows you to hide any file or folder on your Mac, which is a great way to avoid that sense of residual curiosity felt by others should they come across a password protected .rar on your desktop! To hide files, just:

  1. Open Terminal
  2. Enter the following: chflags hidden [Press Space]
  3. Drag files or folders to be hidden from Finder into the Terminal window, which will display their paths in Terminal
  4. Press Return to hide

To make your files visible again, just repeat the above steps using “chflags nohidden” in place of “chflags hidden.” Of course, the fact that anyone else who knows this trick can also use it to unhide your files means that this isn’t an adequate substitute for other security measures.

Use file managers to access hidden files

How to find the path of a file in Mac? Apps like DCommander and Forklift, both of which perform like native macOS apps and function as extensions of Finder, represent great choices if you’re at all uncomfortable using Terminal or digging around in your ~/Library folder.

Because these apps allow you to make hidden files and folders visible (or invisible) using shortcuts or clicking buttons within the apps, they make the whole process incredibly simple. In Forklift, for example, you can show hidden files by:

  1. Clicking View
  2. Selecting View Options towards the bottom of the dropdown menu
  3. Checking the box next to Show Hidden Files

There’s also a button in the toolbar to show and hide hidden files. DCommander has a similar function available, with a Show System Files command, but you need to add it manually to the app’s toolbar:

As you might guess from those subtle differences in terminology, we would suggest that Forklift is more suitable for someone looking for something that really looks and acts like Finder. DCommander, with a larger range of features and toolbar buttons enabled by default, is still intuitive but feels a little more dense.

Whichever you settle on remember that just because these apps make accessing hidden files easy it doesn’t mean that you can’t do some real damage if you start messing around with the wrong thing!

Try all these apps for free

Get a huge set of top apps for keeping your Mac in shape. Best utilities in one pack, give it a go!

Leave hidden files to automatic cleanup

For some Mac users, the question of how to see hidden files is nothing more than succumbing to curiosity. For others, it’s a necessity for troubleshooting a piece of software or device that’s not performing as it should.

Terminal For Mac

Somewhere in between are those in the pursuit of a few spare gigabytes as their hard drive rapidly fills up. If you’re one of those people looking to clean up useless hidden data then an app like CleanMyMac X might be exactly what you need:

  1. Open up the app and select Smart Scan
  2. Hit Scan
  3. Select Review Details underneath Cleanup to see how much System Junk you can safely delete
  4. Hit Run to remove those unneeded files

An app like CleanMyMac X will free up space just as effectively, probably more so, than you’ll be able to by randomly deleting hidden files and hoping for the best. If you do end up going this route then don’t consider learning more about hidden content a waste of time — at least you know what to watch out for if someone tries to troll you into deleting vital system files!

Best of all, DCommander, Forklift, and CleanMyMac X apps mentioned above are all available for a free trial through Setapp, a collection of more than 150 macOS apps from top developers all over the world.

Setapp lives on Mac and iOS. Please come back from another device.

Meantime, prepare for all the awesome things you can do with Setapp.

Read on

Hide Mac Apps Terminal App

Sign Up

Setapp uses cookies to personalize your experience on our website. By continuing to use this site, you agree to our cookie policy.

Best Mac Terminal App