• 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 / Ubuntu / Display Current Directory Contents, Including Hidden Files (Starting With .)

Display Current Directory Contents, Including Hidden Files (Starting With .)

By Sourabh / June 12, 2023 Category: How To, Ubuntu

Learn how to display current directory contents, including hidden files (starting with .). use the long format. Here is the command used to list all the files in your current directory including hidden.

Ubuntu LS Command

The ls command can be used to show hidden files in Ubuntu using terminal (command line). Ls command has many options which can be used to get info about files. Ls command options “-a” and “-l” can be used with Ubuntu ls command to show hidden files in Ubuntu using terminal command line.

Show Hidden Files in Ubuntu Terminal

The “ls” command option “-a” will show all files and folders, including hidden ones. It shows the list in “long format” which includes the permissions, owner, group, size, last-modified date, number of hard links and the filename described.

The following command options can be used:

  1. ‘-a’ or ‘–all’: In directories, do not ignore file names that start with ‘.’.
  2. ‘-A’ or ‘–almost-all’: In directories, do not ignore all file names that start with ‘.’; ignore only ‘.’ and ‘..’. The ‘–all’ (‘-a’) option overrides this option.
  3. ‘-l’ or ‘–format=long’ or ‘–format=verbose’: 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 timestamp.

Note that there is a difference between -a and -A option. The -a option displays hidden files and directories with current directory (.) and parent directory (..) where -A ls command options doesn’t show it.

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

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

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