> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Hide Folders and Show Hidden Files in Ubuntu Linux
- URL: https://itsfoss.com/show-hidden-files-linux/
- Published: 2012-11-08T23:00:37.000Z
- Updated: 2023-05-22T04:09:05.000Z
- Description: Wondering how to see or hide files in Ubuntu Linux? Its damn easy to do so. Here's how to show hidden files in Ubuntu and other Linux distributions.
- Author: Abhishek Prakash
- Tags: Tips 💡

You are probably familiar with the concept of “hiding” a folder or file in Windows. Hiding a folder or file just “removes” the folder from the normal view, and then you can choose to display “hidden files” to see it.

So how do you see the hidden files in Linux, then? Let me show you that.

## Show hidden files in Linux terminal

If you are in a terminal, you can [use the ls command](https://linuxhandbook.com/ls-command/?ref=itsfoss.com) to display all the files, including the hidden ones:

```
ls -a
```

You can recognize the hidden files and folders with the dot (.) before their names.

![ screenshot of a terminal, listing all the files including hidden ones in a directory. Files and folders starting with . are hidden from normal view](https://itsfoss.com/content/images/2023/05/hidden-files-linux-terminal.webp)

Listing all files in a directory

💡

You can also use the `-A` option of the ls command to show hidden files but without the `.` and `..` files.

If you use desktop Linux, you can still see hidden files easily. Let’s see how.

## Display hidden files in the file manager (for desktop users)

If you are in the file manager, you can use the **Ctrl+H** [keyboard shortcut in Ubuntu](https://itsfoss.com/ubuntu-shortcuts/) and I presume other distributions also display all the files, including the hidden ones.

Pressing **Ctrl+H** again will hide the files.

If you are not a fan of keyboard shortcuts, you can use the file manager GUI to display the hidden folders and files.

To see a hidden file or hidden folder in Ubuntu, go to the file manager (Ubuntu’s counterpart of Windows Explorer and the default is Nautilus).

Now go to the **top-right hamburger menu → Show hidden files**:

![Click on Show Hidden Files on the top-right hamburger menu to display hidden files and folders](https://itsfoss.com/content/images/2023/05/toggle-hidden-in-Ubuntu-nautilus.png)

Show Hidden Files

## Hide files and folders in Ubuntu

Now that you have learned to see hidden files in Ubuntu, let’s now see [how you can hide files and folders in Linux](https://itsfoss.com/hide-files-folders-linux/).

In Linux, if a file name starts with `.` (dot), it is considered a hidden file.

Now if you want to hide a file or folder, let’s say **MyFolder**, just rename it to `.MyFolder` and it will be taken as a hidden file or folder.

I hope you know [how to rename files in Linux command line using mv command](https://linuxhandbook.com/mv-command/?ref=itsfoss.com).

```
mv MyFolder .MyFolder
```

![Hide files/folders by renaming them using mv command](https://itsfoss.com/content/images/2023/05/hide-using-mv-command.svg)

Hide using `mv` command

If you are using a Linux desktop, right-click and choose the rename option and add the dot before the name.

![Hide Files and Folders in Linux by adding a dot (.) before their name](https://itsfoss.com/content/images/2023/05/rename-file-GUI-1.png)

Rename Files to Hide Them

Unfortunately/interestingly, there is no similar way as in Windows to hide a folder. In Windows, you right-click on a file and choose the option of making it hidden. But this option is not available in Ubuntu.

## Bonus Tip: Hiding multiple files and folders without renaming them (valid for GUI only)

📋

This method works in GNOME's Nautilus file manager. It may or may not work in [other file managers](https://itsfoss.com/file-managers-linux/).

This is a neat little trick that will let you hide several files and folders from the normal view in your desktop Linux’s file manager.

Traditionally, if you [create a new file](https://itsfoss.com/create-files/) named `.hidden` and add the name of the folders in this file; those folders will be hidden from normal view when you close your file manager and open it again.

![Paste the names of files/folders in ".hidden" file to hide them](https://itsfoss.com/content/images/2023/05/hidden-file-in-directory.png)

Hiding Files/folders using `.hidden` file

Keep in mind that this trick works with only the current directory you are in. It won’t work for nested directories. You can create the `.hidden` file in any directory to hide files and folders in it.

## Hide it or lock it?

This .hidden file is one of the many [lesser-known tweaks of the Nautilus file manager](https://itsfoss.com/nautilus-tips-tweaks/). Here are a few more.

[13 Ways to Tweak Nautilus File Manager in LinuxNautilus, aka GNOME Files, is a good file manager with plenty of features. You can further enhance your experience by using these extensions, tweaks and tips.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/wordpress/2022/07/customizing-GNOME-Nautilus-File-Manager.png)](https://itsfoss.com/nautilus-tips-tweaks/)

This was about hiding files in Linux. There are separate methods for [locking a folder in Linux](https://itsfoss.com/password-protect-folder-linux/).

[How to Password Protect a Folder in LinuxGot some special files to save from prying eyes? Learn how to create password protected folders in the Linux desktop.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/2023/01/password-protect-folder-in-linux.png)](https://itsfoss.com/password-protect-folder-linux/)

I hope you like this little bit of Linux knowledge.