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:
- If you have a hidden file named
.hiddenfile.txt, you can rename it tohiddenfile.txtwith the following command:
mv .hiddenfile.txt hiddenfile.txt
- After renaming, you can verify that the file is no longer hidden by using the
lscommand:
ls
You should see hiddenfile.txt listed without the dot, indicating that it is no longer a hidden file.
