How to unhide a file?

QuestionsQuestions8 SkillsProBasic Files OperationsAug, 18 2025
0136

To "unhide" a file in Linux, you need to rename it by removing the leading dot (.) from its name. Here’s how you can do it using the mv command:

  1. If you have a hidden file named .hiddenfile.txt, you can rename it to hiddenfile.txt with the following command:
mv .hiddenfile.txt hiddenfile.txt
  1. After renaming, you can verify that the file is no longer hidden by using the ls command:
ls

You should see hiddenfile.txt listed without the dot, indicating that it is no longer a hidden file.

0 Comments

no data
Be the first to share your comment!