Sponsored Links
-->

Monday, May 14, 2018

How to hide files/folder in windows with CMD/DOS or command prompt ...
src: i.ytimg.com

In computing, a hidden folder (sometimes hidden directory) or hidden file is a folder or file which filesystem utilities do not display by default when showing a directory listing. They are commonly used for storing user preferences or preserving the state of a utility, and are frequently created implicitly by using various utilities. They are not a security mechanism because access is not restricted - usually the intent is simply to not "clutter" the display of the contents of a directory listing with files the user did not directly create.


Video Hidden file and hidden directory


Unix and Unix-like environments

In Unix-like operating systems, any file or folder that starts with a dot character (for example, /home/user/.config), commonly called a dot file or dotfile, is to be treated as hidden - that is, the ls command does not display them unless the -a flag (ls -a) is used. In most command-line shells, wildcards will not match files whose names start with . unless the wildcard itself starts with an explicit . (although this is sometimes configurable; for example, the dotglob option in bash).

The notion that filenames preceded by a . should be hidden in Unix was probably an unintended consequence of trying to make ls not show . and ...

A convention arose of using dotfile in the user's home directory to store per-user configuration or informational text. Early uses of this were the well-known dotfiles .profile, .login, and .cshrc, which are configuration files for the Bourne shell and C shell and shells compatible with them, and .plan and .project, both used by the finger and name commands. 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 dotfiles in $HOME to non-hidden files in $HOME/.config - a hidden directory.

Android

The Android operating system uses empty .nomedia files to tell smartphone apps not to display or include the contents of the folder. This prevents digital photos and digital music files from being shown in picture galleries or played in MP3 player apps. This is useful to prevent downloaded voicemail files from playing between the songs in a playlist, and to keep personal photos private while still allowing those in other folders to be shared in person with friends, family, and colleagues. The .nomedia file has no effect on the filesystem or even the operating system, but instead depends entirely on each individual app to respect the presence of the different files.

GNOME

In the GNOME desktop environment (as well as all programs written using GLib), 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 Finder, although not in ls. The "Invisible" attribute can be set or cleared using the SetFile command; for example, invoking SetFile -a V jimbo will hide the file "jimbo". Starting in Mac OS X Snow Leopard, the chflags command can also be used; for example, chflags hidden jimbo will hide the file "jimbo".


Maps Hidden file and hidden directory



DOS and MS Windows

In MS-DOS and other DOS systems, file directory entries include a Hidden file attribute which is manipulated using the attrib command. Use the command line command dir /ah to display the files with the attribute of hidden.

Under Windows Explorer, the content of a directory can be hidden just by appending a pre-defined CLSID to the end of the folder name. The directory is still visible, but its content becomes one of the Windows Special Folders. However, the real content of this directory can still be seen using the CLI command dir.


How to Show Hidden Files in Windows 10
src: cdn1.tekrevue.com


References


Windows 10 - How To View/Show Hidden Files, Folders and Drives ...
src: i.ytimg.com


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


Source of article : Wikipedia