How do you create a hidden file in Linux?

QuestionsQuestions8 SkillsProBasic Files OperationsAug, 18 2025
0232

To create a hidden file in Linux, you simply need to create a file with a name that starts with a dot (.). Here’s how you can do it using the touch command:

touch .hiddenfile.txt

This command creates a hidden file named .hiddenfile.txt in the current working directory. You can verify that the file is hidden by using the ls -a command, which lists all files, including hidden ones:

ls -a

You should see .hiddenfile.txt listed among the output.

0 Comments

no data
Be the first to share your comment!