Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding
  1. Home
  2. Developers
  3. How to Show Hidden Files in Linux

How to Show Hidden Files in Linux

  • By Gcore
  • September 1, 2023
  • 2 min read
How to Show Hidden Files in Linux

Linux has a wide array of files that are kept hidden to provide a neater user experience and protect them from accidental alterations. Knowing how to unveil these hidden files is crucial whether you’re troubleshooting, organizing, or just curious. This comprehensive guide will help you discover the methods for revealing hidden treasures in your Linux environment.

Show Hidden Files Using the Terminal

In Linux, hidden files usually start with a dot (.) and are thus often referred to as “dot files.” Here’s a step-by-step guide to show these hidden files in Linux via terminal:

#1 Open Terminal

You can open the terminal by pressing Ctrl + Alt + T on your keyboard or by searching for “Terminal” in your application menu.

#2 Navigate to the Desired Directory

Use the cd (change directory) command to navigate to the directory where you want to view hidden files. For example:

cd /path/to/directory

#3 List All Files, Including Hidden Ones

Enter the following command to list all the files, including the hidden ones:

ls -la

Here’s a breakdown of the command options:

  • ls: The list command.
  • -l: List in long format to show details such as file permissions, number of links, owner, group, size, and last modification time.
  • -a: Show all entries, including hidden files that start with a dot (.).

#4 View Output

After executing the ls -la command, the terminal will display all files in the directory, including the hidden ones. Hidden files will start with a dot (.) before the filename, like .bashrc or .config.

Show Hidden Files Using the File Managers

The steps can vary slightly depending on your specific file manager, but here’s a general approach for the most common ones:

#1 Nautilus (Default for GNOME and Ubuntu)

  • Open the Nautilus file manager (often simply called “Files”).
  • Once it’s open, press Ctrl + H on your keyboard. This will toggle the visibility of hidden files.

#2 Dolphin (Default for KDE Plasma)

  • Open the Dolphin file manager.
  • Press Alt + . (period) on your keyboard. Alternatively, navigate to the Control menu, select ‘Hidden Files’ or look for a similar option.

Remember, in most Linux file managers, hidden files and directories start with a dot (.) prefix, such as .bashrc or .config. Using the appropriate file manager method, you can easily toggle their visibility as needed.

By following these steps in the terminal and in file managers, you can effortlessly unveil hidden files across any directory within your Linux environment. These hidden files, often beginning with a dot (e.g., .bashrc or .config), play crucial roles in user-specific configurations and system-wide settings. Learning to show hidden files allows you to fine-tune your system, troubleshoot potential issues, and ensure optimal performance, all while gaining a more profound understanding of the Linux architecture.

Conclusion

Looking to deploy Linux in the cloud? With Gcore Cloud, you can choose from Basic VM, Virtual Instances, or VPS/VDS suitable for Linux:

Choose an instance

Related articles

What is an SSL handshake?

An SSL handshake, more accurately called a TLS handshake, is a process that establishes a secure encrypted connection between a client (like a web browser) and a server before any data transfer begins. As of 2024, over 95% of HTTPS websites

What is API Rate Limiting?

API rate limiting is the process of controlling how many requests a user or system can make to an API within a specific timeframe. This mechanism caps transactions to prevent server overload and ensures fair distribution of resources across

What is Bot mitigation?

Bot mitigation is the process of detecting, managing, and blocking malicious bots or botnet activity from accessing websites, servers, or IT ecosystems to protect digital assets and maintain a legitimate user experience. Malicious bots acco

What is GEO DNS?

GeoDNS is a DNS server technology that returns different IP addresses based on the geographic location of the client making the request. This enables geographic split-horizon DNS responses, directing users to servers closest to their physic

Good bots vs Bad Bots

Good bots vs bad bots is the distinction between automated software that helps websites and users versus programs designed to cause harm or exploit systems. Malicious bot attacks cost businesses an average of 3.6% of annual revenue.A bot is

What is DNS Cache Poisoning?

DNS cache poisoning is a cyberattack in which false DNS data is inserted into a DNS resolver's cache, causing users to be redirected to malicious sites instead of legitimate ones. As of early 2025, over 30% of DNS resolvers worldwide remain

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.