How to hide files?

QuestionsQuestions4 SkillsProBasic Files OperationsAug, 29 2025
0145

To hide files in a Unix-like operating system, you can rename the file to start with a dot (.). Here’s how to do it:

  1. Using the mv command:

    mv filename .filename
    

    Replace filename with the name of the file you want to hide. This renames the file to .filename, making it hidden.

  2. Creating a new hidden file: You can also create a new hidden file directly by prefixing the filename with a dot:

    touch .hiddenfile
    

To view hidden files later, use the ls -a command.

If you have more questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!