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
mkdircommand 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!
