How to Hide/Unhide your personal folders, applications, pictures, files on macOS ?

0
220views

On macOS, you can hide or unhide personal folders, applications, pictures, and files using a few different methods. These range from simple Finder tweaks to Terminal commands for deeper control.

Below are the steps for each approach and a video that describes the steps: –


Six methods to hide / unhide everything on macOS: –

Method 1: Hide Files/Folders Using Finder (Basic Visibility Toggle)

This method makes items invisible in Finder without changing their accessibility.

1- Hide a File or Folder:

  • Open Terminal (found in Applications > Utilities).
  • Use the chflags command to hide the item: chflags hidden /path/to/your/file_or_folder
    • Example: To hide a folder named “Private” on your Desktop:
      chflags hidden ~/Desktop/Private
  • The item will disappear from Finder but still exist.

2- Unhide a File or Folder:

  • To make it visible again, use: chflags nohidden /path/to/your/file_or_folder
    • Example:
      chflags nohidden ~/Desktop/Private

3- Access Hidden Items in Finder:

  • Press Command + Shift + . (period) in Finder to toggle visibility of hidden files. This shows all hidden items temporarily without unhiding them permanently.

Method 2: Rename with a Dot (System-Level Hiding)

Files or folders starting with a dot (.) are treated as hidden by macOS, similar to Unix conventions.

1- Hide by Renaming:

  • Open Terminal.
  • Rename the file or folder by adding a . at the beginning: mv /path/to/your/item /path/to/.youritem
    • Example: Hide a folder named “Secrets” in your home directory:
      mv ~/Secrets ~/.Secrets

2- Unhide by Renaming:

  • Remove the dot to make it visible again: mv /path/to/.youritem /path/to/youritem
    • Example:
      mv ~/.Secrets ~/Secrets

Note:

  • Hidden items (with a .) won’t appear in Finder unless you toggle hidden files (Command + Shift + .).

Method 3: Move to a Hidden Location

Move sensitive items to a location that’s naturally hidden or less accessible.

1- Hide in a System Folder:

  • Move the item to a directory like ~/Library (user Library folder, hidden by default):
    mv /path/to/your/item ~/Library/
  • Example:
    mv ~/Desktop/Private ~/Library/Private

2- Unhide:

  • Move it back to a visible location:
    mv ~/Library/Private ~/Desktop/Private

3- Access Hidden Library:

  • In Finder, hold Option, click the Go menu, and select Library to access it.

Method 4: Use File Permissions (Restrict Access)

Instead of hiding visibility, you can lock access to files/folders so only your user (or no one) can see the contents.

1- Hide Access:

  • Open Terminal and restrict permissions: chmod 700 /path/to/your/item
    • 700 means only the owner (you) can read/write/execute. Example:
      chmod 700 ~/Desktop/Private

2- Unhide Access:

  • Restore broader permissions (e.g., readable by others): chmod 755 /path/to/your/item
    • Example:
      chmod 755 ~/Desktop/Private

3- Check Permissions:

  • Use ls -l in Terminal to verify:
    ls -l /path/to/your/item

Method 5: Hide Applications in Launchpad

To hide an app from Launchpad without deleting it:

1- Hide from Launchpad:

  • You can’t hide apps directly in Launchpad, but you can move them out of /Applications:
    mv /Applications/AppName.app ~/Documents/
  • This removes it from Launchpad but keeps it functional.

2- Unhide:

  • Move it back:
    mv ~/Documents/AppName.app /Applications/

3- Alternative (Third-Party Tools):

  • Use apps like HiddenMe or AppHider from the Mac App Store for a GUI-based solution.

Method 6: Encrypt and Hide (Maximum Security)

For sensitive files, encrypt them into a hidden disk image.

1- Create an Encrypted DMG:

  • Open Disk Utility (Applications > Utilities).
  • Go to File > New Image > Blank Image.
  • Set:
    • Save As: e.g., HiddenFiles.dmg.
    • Encryption: 128-bit or 256-bit AES.
    • Image Format: read/write disk image.
  • Set a password and save.
  • Mount the DMG, add your files, then eject it.

2- Hide the DMG:

  • Use Method 1 or 2 to hide the .dmg file (e.g., chflags hidden ~/Desktop/HiddenFiles.dmg).

3- Unhide and Access:

  • Unhide with chflags nohidden, double-click the DMG, and enter the password to mount it.

Leave a Reply

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