How to create a hidden directory?

QuestionsQuestions8 SkillsProBasic Files OperationsSep, 19 2025
0246

To create a hidden directory in Linux, you simply need to prefix the directory name with a dot (.) when using the mkdir command. Here’s how to do it:

Command:

mkdir .hidden_directory

Explanation:

  • The mkdir command creates a new directory.
  • Prefixing the directory name with a dot makes it hidden.

Verification:

To check that the hidden directory was created, you can use:

ls -a

This will list all files and directories, including hidden ones. If you have any further questions or need assistance, feel free to ask!

0 Comments

no data
Be the first to share your comment!