Hidden file and hidden directory
In
Unix and Unix-like environments
In
will not match files whose names start with.
unless the wildcard itself starts with an explicit .
.
A convention arose of using dotfiles in the user's home directory to store per-user configuration or informational text. Early uses of this were the well-known dotfiles
Many applications, from bash to desktop environments such as GNOME, now store their per-user configuration this way, but the Unix/Linux freedesktop.org XDG Base Directory Specification aims to migrate user config files from individual dotfiles in $HOME
to non-hidden files in the hidden directory $HOME/.config
.[7]
Android
The
.nomedia
file has no effect on the filesystem or even the operating systemGNOME
In the GNOME desktop environment (as well as all programs written using GLib[8]), filenames listed in a file named .hidden
in each directory are also excluded from display. In GNOME's file manager, the keyboard shortcut Ctrl+H enables the display of both kinds of hidden files.
macOS
In addition to the "dotfile" behaviour, files with the "Invisible" attribute are hidden in
DOS and MS Windows
In DOS systems, file directory entries include a Hidden file attribute which is manipulated using the attrib command. Using the command line command dir /ah
displays the files with the Hidden attribute. In addition, there is a System file attribute that can be set on a file, which also causes the file to be hidden in directory listings. Use the command line command dir /as
to display the files with the System attribute.
Under
Under
dir
.
References
- ^ "What is a hidden file?". Microsoft.com. Archived from the original on 2015-04-03.
- Linux Focus. March 1998. Retrieved 2013-09-08.
- ^ "Sample .bashrc and .bash_profile Files". Linux Documentation Project.
- ^ Subodh Soni (2001-12-01). "Understanding Linux configuration files". IBM Developer. Retrieved 2019-04-26.
- ^ "ls(1) - Linux man page". linux.die.net. Retrieved 2020-08-23.
- would respond with the other user's current status, and the contents of the
.plan
and.project
files in that user's$HOME
folder. - ^ Bastian, Waldo; Lortie, Ryan; Poettering, Lennart (November 24, 2010). "XDG Base Directory Specification". Retrieved June 4, 2014.
- ^ "GLib commit: Support for .hidden files". 28 November 2012. Retrieved 2013-08-07.
- ^ Darwin and macOS General Commands Manual –
- ^ Darwin and macOS General Commands Manual –
- ^ "Canonical Names of Control Panel Items - Win32 apps". Microsoft. 29 April 2022.
- ^ "The Secret BEHIND the Windows 7 GodMode". The Windows Club. 5 January 2010.
External links
- Bellevue Linux Users Group: Hidden files in Unix-like operating systems at the Wayback Machine (archived October 17, 2007)
- Computer Hope: Microsoft DOS attrib command
- .NOMEDIA file