How do I list hidden files?

QuestionsQuestions8 SkillsProBasic Files OperationsOct, 09 2025
0195

To list hidden files in a Linux directory, you can use the ls command with the -a option. Hidden files in Linux are those that start with a dot (.), and the -a option tells ls to include these files in the output.

Command to List Hidden Files

ls -a

Example

If you run the command in a directory, you might see output like this:

.  ..  .hidden_file.txt  regular_file.txt
  • . represents the current directory.
  • .. represents the parent directory.
  • .hidden_file.txt is a hidden file.
  • regular_file.txt is a visible file.

Additional Options

You can also combine the -a option with -l for a detailed listing:

ls -la

This will show you hidden files along with their permissions, ownership, size, and modification date.

Feel free to ask if you have more questions or need further assistance!

0 Comments

no data
Be the first to share your comment!