To easily hide files in Linux prepend the file or directory
with a dot "." before its filename or directory name.
To view hidden files in Linux use ls -la command.
Hidden files in Linux are prepended with "." (dot).
To hide a file, use the mv (move) command.
mv command will rename the file or directory, if another path is specified aside from the current directory then the file is moved and at the same time it will be renamed, if a new file name is specified.
Here's one example:
mv hide_salary.txt .hide_salary.txt
hide_salary.txt will be renamed to .hide_salary.txt
Hiding files does not mean restricting access. It will only hide the file from the user.
Proper permissions settings should be defined if restriction is needed.
ls -l command will not show hidden files.
ls -la command will show hidden files.
To unhide the file simply remove the "dot".
Unhide a hidden file:
mv .hide_salary.txt show_salary.txt
.hide_salary.txt will be renamed as show_salary.txt, and since there is no prefix of dot on the file name; this file is not hidden.
Cheers, till next time.
================================
Free Android Apps:
Click on links below to find out more:
Linux Android App cheat sheet:
Multiplication Table for early learners
Catholic Rosary Guide for Android:
Divine Mercy Chaplet Guide (A Powerful prayer):
Comments
Post a Comment