How to hide a directory?

QuestionsQuestions8 SkillsProBasic Files OperationsOct, 05 2025
090

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

mkdir .hiddendir

This command creates a hidden directory named .hiddendir. To verify its creation, you can list all directories, including hidden ones, with the ls -a command:

ls -a

You should see .hiddendir listed among the other directories.

0 Comments

no data
Be the first to share your comment!