• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To See Hidden Files And Hidden Folders In Linux

How To See Hidden Files And Hidden Folders In Linux

By Sourabh / September 13, 2022 Category: How To, Ubuntu

Display only hidden files in Linux. Learn how to show hidden files in terminal Ubuntu and how to show hidden folders in Linux command line.

Display the hidden files and directories

To display the hidden files and directories in Linux Ubuntu, use the ls -a command and joining the command with grep to show only the hidden files (all that start with a . (dot)). See below:

$ ls -a | grep "^\."

Once the command is executed it will only show the result which start with a dot (is hidden).

Note that whne you run the above command it is quite hard to tell which is file and which is the folder. To do so, you can see the hidden files and directories in the long listing format.

When you have the result in long listing format you can easily see which is a file and which is a directory.

To see hidden files and folders in long listing format, run the command:

$ ls -ld .*

Display Only Hidden Files

If you want to display only hidden files and do not wihc to see the hidden directories/folders, run the following command:

$ ls -ld .* |grep -v ^d

The ‘ls’ command lists information about files (of any type, including directories).

When you execute ls -a it looks in directories and it does not ignore file names that start with ‘.’.

‘-d’ is for directory and ‘-l’ is for long format or ‘–format=verbose’ where in addition to the name of each file, print the file type, file mode bits, number of hard links, owner name, group name, size, and the modification time.

Primary Sidebar

Latest Posts

Downlaod Ubuntu 26.10 Stonking Stingray

How To Shutdown Linux With A 15 Minute Delay And Message

Using Linux Terminal How To Get Total Disk Size In GB

Count And Find Number Of Files In A Linux Directory Using Command

Check How Many Users Are Created In Linux Ubuntu

How To Check User Permissions In Linux Using Command

Check Which Folder Is Taking More Space In Ubuntu Linux

How to Install Claude Desktop App in Ubuntu Linux

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap