How to create a hidden file?

QuestionsQuestions8 SkillsProBasic Files OperationsSep, 19 2025
0159

To create a hidden file in a Unix-like operating system, simply prefix the file name with a dot (.). Here’s how you can do it using the terminal:

  1. Open your terminal.
  2. Use the touch command to create a hidden file. For example:
touch .hiddenfile

This command creates a file named .hiddenfile in the current directory. You can verify its creation by listing all files, including hidden ones, with:

ls -a

If you have any further questions or need more examples, let me know!

0 Comments

no data
Be the first to share your comment!