Hiding a file or directory under Linux

Last update on November 1, 2008 07:18 AM by netty5
Published by netty5

Hiding a file or directory under Linux






To hide a file or directory in Linux, just have its name be preceded by a period (.).

For example:

. bash_history
. bash_profile
. ssh

Note that by doing so you are not really hiding the files because, using the option "-a" from the ls command or by selecting "Show hidden files" in the Explorer tab of Gnome or KDE, you can see those files.
Best answers for « Hiding a file or directory under Linux » in :
Hiding files and documents on Linux Show Hiding files and documents on Linux To hide a file or directory in Linux, just to preface its name from a period (.). For example: .bash_history .bash_profile .ssh Note that doing this you do not really hide the files...
The option to display hidden files and folders has disappeared Show The option to display hidden files and folders has disappeared Under Windows XP, you may lose the options that allows you to view files and cookies. This is usually due to changes in the register caused by a virus or malicious software on...
[VIRUS] - Unable to apply Hidden Files/Folders Show [VIRUS] - Unable to apply Hidden Files/Folders Issue Solution Issue When I click "Show hidden files" in “Folder Options” and apply, there’s no change it still doesn’t show me any hidden file! Then I tried scanning using...
[MS-Dos]List the contents of a directory in a file Show[MS-Dos]List the contents of a directory in a file Intro Explanation Intro It may be convenient to make the listing of one or more directories in a file, to make a catalog of files. Under MS-DOS (or Windows by opening a...
[Linux]Managing file attributes on ext2 Show[Linux]Managing file attributes on ext2 Introduction Isattr chattr Attributes List -A -S -a -c -D -d -I -i -j -s -T -t -u -E -X -Z
[Linux]Cutting a file into several parts Show[Linux]Cutting a file into several parts Linux is full of utility tools allowing you to manipulate files. There is a very handy tool to split a file into several parts (for example to carry data on low capacity media). The split...
Download Hide Files PRO ShowHide Files PRO has a very simple interface to allow you to control your private data so that nobody can have access to them. It is very easy to use and understand , simply add the file that you would like to hide to the private file list and click...
Linux - Tree structure of files ShowFile hierarchy under Linux To ensury compatibility and portability, Linux systems comply with the sole FHS (File Hierarchy Standard) standard. The basic hierarchy is as follows: /the root, containing the main directories /bincontains...
UNIX Commands ShowTable of the main UNIX commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a...
Linux commands ShowTable of main Linux commands Command Description DOS equivalent ls lists the content of a directory dir cd change directory cd cd .. parent directory cd.. mkdir creates a new...