There are a few things you can do to make sure your files and folders are hidden on every operating system. Here are three tips:

  1. Hide your files and folders in a location that is easily accessible but not easily guessed. For example, you might hide your files and folders in the Documents folder on your desktop.
  2. Use a password manager to keep track of your passwords and other important information. This way, if someone gets access to your computer and sees all of your personal information, they would be less likely to be able to access or damage your files or folders.
  3. Use a virtual hard drive (VHD) to store all of your personal data on one place so that it is more difficult for someone to access or damage it if they get access to your computer. This way, if something happens to your physical hard drive, you can still store all of the data on the VHD!

A hidden file or folder is just a normal file or folder with a “hidden” option set. Operating systems hide these files by default, so you can use this trick to hide some files if you share a computer with someone else.

This trick is far from foolproof. It’s trivial to enable the “show hidden files” option and find a hidden file. Operating systems hide many system files by default — just to get them out of your way.

Hide a File or Folder on Windows

To hide a file or folder on Windows, open a Windows Explorer or File Explorer window and locate the file or folder you want to hide. Right-click it and select Properties.

Enable the Hidden checkbox on the General pane of the Properties window. Click OK or Apply and your file or folder will be hidden.

RELATED: Make a Super Hidden Folder in Windows Without any Extra Software

Windows also has a second type of hidden file or folder, known as a “system file.” There’s a separate option to enable viewing system files and folders. You can make an extra-hidden file by marking it as a system file — people will have to go out of their way to disable the “Hide protected operating system files (recommended)” option to find it. You can’t do this from the graphical interface, so follow our guide to marking files and folders as system files on Windows if you want to do this.

View Hidden Files and Folders on Windows

RELATED: How to Show Hidden Files and Folders in Windows

To view a hidden file or folder on Windows 8 or 10, click the View tab on the ribbon at the top of the File Explorer window and enable the Hidden items checkbox under Show/hide. Hidden files and folders will have partially transparent icons, so you can easily tell which are hidden and which are normally visible.

On Windows 7, click the Organize button on the toolbar and select Folder and search options.

Click over to the View tab and select the Show hidden files, folders, and drives option. Click OK or Apply to save your changes.

Hide a File or Folder on Linux

Linux hides files and folders that have a period at the start of their name. To hide a file or folder, just rename it and place a period at the start of its name. For example, let’s say you had a folder named Secrets you wanted to hide. You’d rename it to .Secrets, with the period in front. File managers and other utilities will hide it from view by default.

View Hidden Files and Folders on Linux

RELATED: 7 Ubuntu File Manager Features You May Not Have Noticed

Click the “Show hidden” option in your file manager of choice to view hidden files and folders on Linux. For example, in the Nautilus file manager used on Ubuntu and other GNOME-based Linux distributions, click the View menu and select Show Hidden Files.

The option will just display files an folders with a period at the start of their name.

You can view hidden files in an Open or Save dialog, too. On Ubuntu and other GNOME-based Linux distributions, just right-click in the list of files and select the Show Hidden Files option.

Hide a File or Folder on Mac OS X

RELATED: A Windows User’s Guide to Mac OS X Keyboard Shortcuts

Macs also hide files and folders beginning with a . character. There’s also a special “hidden” attribute the Finder will obey. Hiding a file or folder is a bit more difficult on a Mac. Try to rename a file or folder so it begins with a period and the Finder will tell you “these named are reserved for the system.” There’s also no way to quickly toggle the hidden attribute in the Finder’s graphical interface.

You can quickly mark a file or folder as hidden with the chflags command in the terminal. First, open a Terminal window by pressing Command + Space, typing Terminal into the Spotlight search dialog, and pressing Enter.

Type the following command into the terminal, but don’t press Enter:

Be sure to type a space after “hidden.”

Next, locate the file or folder you want to hide in the Finder. Drag and drop it to the terminal. The file or folder’s exact path will appear in the terminal.

Press Enter to run the command. This will mark the file as hidden.

Use the same command to unhide a file or folder in the future, using “chflags nohidden” instead of “chflags hidden”.

View Hidden Files and Folders on Mac OS X

Mac OS X has a secret keyboard shortcut to view hidden folders and files in any program’s Open or Save dialog. Just press Command + Shift + Period. Note that this only works in Open and Save dialogs — not in the Finder itself. However, this may be the most convenient way to quickly access your hidden files when you need them.

The Finder doesn’t have a graphical option for viewing hidden files and folders. Instead, you’ll have to use a command. First, open a Terminal window in the same way as above. Run the following commands on Mac OS X 10.9 Mavericks. These commands will set the Finder to always show hidden files and restart the finder so your changes will take effect. Type each command into the terminal and press Enter after each.

(On older versions of Mac OS X prior to Mavericks — 10.8 Mountain Lion. 10.7 Lion, and 10.6 Snow Leopard — use the same commands as above but change “com.apple.finder” to “com.apple.Finder” — the F here must be capitalized on these operating systems.)

killall Finder

The Finder will show hidden files. They’ll be partially transparent so you can see which files are hidden and which are normally visible.

To hide files again, run the following commands in a terminal window:

(On older versions of Mac OS X, remember to use “com.apple.Finder” instead).

killall Finder

To actually prevent people from accessing your secret files and folders, you’ll want to encrypt them instead. Files and folders hidden in the above ways are accessible with a few clicks — they’re hidden from view, but easy to find if someone goes looking for them. Encryption ensures your files and folders can’t be accessed unless someone has your encryption key.