Thursday, July 9, 2026

Listing with ls command including (dotted) . files in Linux Systems

 --listing with ls including (dot) . files

To list all files including hidden dot (.) files using the ls command, use ls -a. [1, 2]
Core Commands
  • ls -a
    • Lists all files.
    • Includes the special . (current directory) and .. (parent directory) entries. [1, 2, 3, 4]
  • ls -A
    • Lists almost all files.
    • Excludes the explicit . and .. entries to save space. [1, 2]
  • ls -la
    • Provides a long listing format.
    • Shows file sizes, permissions, owners, and modification dates. [1, 2, 3]
  • ls -laX
    • Lists all files.
    • Sorts the items alphabetically by file extension. [1, 2, 3, 4, 5]
Filtering to Show Only Dot Files
If you do not want to see normal files and only want to display hidden dot files, you can pipe the output: [1, 2]
bash
ls -a | grep "^\."
குறியீட்டைக் கவனமாகப் பயன்படுத்துங்கள்.
If you want to view these details regularly, consider checking out documentation on W3Schools Bash ls Command or GeeksforGeeks Linux ls Command to configure permanent shortcuts. [1, 2]
Would you like to know how to create a permanent terminal alias for this command, or do you need to sort these files by size or date? [1, 2]

No comments: