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.
