Hidden file and hidden directory

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.[1][2][3][4]

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 or -A flags (ls -a or ls -A) are used.[5] In most command-line shells, wildcards will not match files whose names start with . unless the wildcard itself starts with an explicit . .

According to Rob Pike, the dot file was an unintended consequence of the implementation of hierarchical file systems during the UNIX 2nd Edition re-write, which introduced the . and .. file entries within all directories, and necessitated the omission of dot files from the directory listing produced by ls. Due to the implementation of omitting the hierarchical files from directory listings, all files prefixed with a . character were omitted, resulting in the introduction of a mechanism for hidden files.[6]

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 .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.[7]

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.[8]

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[9]), 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.[10] Starting in Mac OS X Snow Leopard, the chflags command can also be used; for example, chflags hidden jimbo will hide the file jimbo.[11]

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 Windows Explorer, Hidden files and directories are, by default, not displayed - though they are still accessible by entering the full path into the explorer address bar. System files are displayed, unless they are also hidden. There are two options that enable the display of hidden files. The main "Hidden files and folders" option can be used to turn on the display of hidden files but this won't, on its own, display hidden system files. A second option, "Hide protected operating system files" additionally needs to be turned off in order for hidden system files to be shown. Hidden files are displayed with a slight transparency, so even when they are visible they are visually delineated from non-hidden files.

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

References

  1. ^ "What is a hidden file?". Microsoft.com. Archived from the original on 2015-04-03.
  2. ^ "Configuring X: What are all those dotfiles for anyway?". Linux Focus. March 1998. Retrieved 2013-09-08.
  3. ^ "Sample .bashrc and .bash_profile Files". Linux Documentation Project.
  4. ^ Subodh Soni (2001-12-01). "Understanding Linux configuration files". IBM Developer. Retrieved 2019-04-26.
  5. ^ "ls(1) - Linux man page". linux.die.net. Retrieved 2020-08-23.
  6. ^ Rob Pike (August 3, 2012). "A lesson in shortcuts". Google Plus. Archived from the original on 2014-12-05.
  7. ^ One user could lookup another by using the command along with the username (and hostname if not on the local host), and the finger service would respond with the other user's current status, and the contents of the .plan and .project files in that user's $HOME folder.
  8. ^ Bastian, Waldo; Lortie, Ryan; Poettering, Lennart (November 24, 2010). "XDG Base Directory Specification". Retrieved June 4, 2014.
  9. ^ "GLib commit: Support for .hidden files". 28 November 2012. Retrieved 2013-08-07.
  10. ^ SetFile(1) – Darwin and macOS General Commands Manual
  11. ^ chflags(1) – Darwin and macOS General Commands Manual
  12. ^ "Canonical Names of Control Panel Items - Win32 apps". Microsoft. 29 April 2022.
  13. ^ "The Secret BEHIND the Windows 7 GodMode". The Windows Club. 5 January 2010.

Read other articles:

Kesepakatan Tientsin atau Konvensi Li–Fournier, yang ditandatangani pada 11 Mei 1884, dimaksudkan untuk menyelesaikan perang yang tidak diumumkan antara Prancis dan Tiongkok terhadap kekuasaan atas Tonkin (Vietnam utara). Konvensi ini, yang dirundingkan oleh Li Hung-chang atas nama Tiongkok dan capitaine de vaisseau François-Ernest Fournier atas nama Prancis, menetapkan penarikan pasukan Tiongkok dari Tonkin sebagai imbalan bagi traktat komprehensif yang akan menyelesaikan rincian perdagan...

 

 

German cross-country skier This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (January 2014) (Learn how and when to remove this template message) Denise HerrmannHerrmann in 2018Personal informationNationalityGermanBorn (1988-12-20) 20 December 1988 (age 35)Schlema, East GermanyHeight1.75 m (5 ft 9 in)Professional informationClubWSC Erzgebirge ...

 

 

Lambang Persemakmuran Polandia-Lituania Lambang Persemakmuran Polandia-Lituania adalah simbol Persemakmuran Polandia-Lituania, dan menggambarkan Uni Polandia-Lituania: Kerajaan Polandia dan Kadipaten Agung Lituania. Oleh karena itu lambang ini dibuat dari dua lambang yang berbeda: Lambang Polandia, Elang putih Lambang Belarus, Ksatria berkuda Lambang Lituania, Ksatria berkuda Lambang modern Polandia Lambang Belarus 1918—1919 Lambang Belarus 1991—1995 Lambang modern Lituania. 1991 Artikel ...

Dalam nama Tionghoa ini, nama keluarganya adalah Chi. JenderalChi Haotian迟浩田Chih Hao-tien Wakil Ketua Komisi Militer PusatMasa jabatanKomisi Partai: 28 September 1995 – 15 November 2002 Komisi Negara: 28 Maret 1993 – 5 Maret 2003Menjabat bersama Liu Huaqing, Zhang Zhen, Zhang Wannian and Hu JintaoKetuaJiang ZeminMenteri Pertahanan Nasional ke-8Masa jabatanMaret 1993 – 17 Maret 2003Perdana MenteriLi PengZhu Rongji PendahuluQin JiweiPenggantiCao Gangchu...

 

 

Motor vehicle Infiniti Q30 (H15)2017 Infiniti Q30 SE Diesel (UK)OverviewManufacturerInfiniti (Nissan)Also calledInfiniti QX30 (crossover version)ProductionDecember 2015 – 2019[1]Model years2016–2019[1]AssemblyUnited Kingdom: Sunderland (NMUK)[2]Body and chassisClassSubcompact executive car (C)Body style5-door hatchbackLayoutFront-engine, front-wheel-driveFront-engine, all-wheel-drivePlatformMercedes-Benz MFA[3]RelatedInfiniti QX30Mercedes-Ben...

 

 

Disambiguazione – Se stai cercando l'attore statunitense, vedi Henry Stanley (attore). Disambiguazione – Se stai cercando il nobile inglese, vedi Henry Stanley, IV conte di Derby. Ritratto di Henry Morton Stanley Henry Morton Stanley (Denbigh, 28 gennaio 1841 – Londra, 10 maggio 1904) è stato un giornalista ed esploratore britannico, gallese di nascita, famoso per le sue esplorazioni africane e per la sua ricerca di David Livingstone. È celebre la frase con la quale Stanley salutò L...

Sporting event delegationNigeria at the2017 World Aquatics ChampionshipsFlag of NigeriaFINA codeNGRNational federationNigeria Swimming Federationin Budapest, HungaryCompetitors3 in 1 sportMedals Gold 0 Silver 0 Bronze 0 Total 0 World Aquatics Championships appearances197319751978198219861991199419982001200320052007200920112013201520172019202220232024 Nigeria competed at the 2017 World Aquatics Championships in Budapest, Hungary from 14 July to 30 July. Swimming Main article: Swimming at the ...

 

 

Cet article est une ébauche concernant une localité japonaise. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Yokosuka-shi 横須賀市 Vue de Yokosuka depuis le parc Verny. Drapeau Administration Pays Japon Région Kantō Préfecture Kanagawa Maire Katsuaki Kamiji Code postal 〒238-8550 Démographie Population 394 698 hab. (octobre 2018) Densité 3 915 hab./km2 Géographie Coordonnées 3...

 

 

1965 Polish parliamentary election ← 1961 30 June 1965 (1965-06-30) 1969 → All 460 seats in the Sejm   First party   Leader Władysław Gomułka Party FJN - PZPR Seats won 460 Seat change Premier before election Józef Cyrankiewicz PZPR New Premier Józef Cyrankiewicz PZPR Czesław Wycech, leader of puppet United People's Party Parliamentary elections were held in Poland on 30 May 1965.[1] They were the fourth elections to the ...

Dewan Perwakilan Rakyat DaerahKota Cimahi ᮓᮦᮝᮔ᮪ ᮕᮀᮝᮊᮤᮜ᮪ ᮛᮠᮚᮒ᮪ ᮓᮆᮛᮂ ᮊᮧᮒ ᮎᮤᮙᮠᮤDéwan Pangwakil Rahayat Daérah Kota CimahiDewan Perwakilan RakyatKota Cimahi2019-2024JenisJenisUnikameral SejarahSesi baru dimulai26 Agustus 2019PimpinanKetuaIr. H. Achmad Zulkarnain, M.T. (PKS) sejak 24 September 2019 Wakil Ketua IH. Bambang Purnomo (Gerindra) sejak 24 September 2019 Wakil Ketua IIPurwanto, S.Pd. (PDI-P) sejak 24 September 2019 W...

 

 

2023 Niuean general election ← 2020 29 April 2023 Next → All 20 members of the Niue Assembly Premier before election Dalton Tagelagi Independent Elected Premier Dalton Tagelagi Independent Politics of Niue Constitution Premier Dalton Tagelagi Cabinet Assembly Speaker: Hima Douglas Recent elections General: 2014201720202023 Other countries vte General elections were held in Niue on 29 April 2023.[1] The elections were originally planned to be held early, in late ...

 

 

ذا إكسبندابلزThe Expendables (بالإنجليزية) الشعارالبوستر السينمائيمعلومات عامةالصنف الفني فيلم أكشن — فيلم إثارة تاريخ الصدور 13 أغسطس 2010 (2010-08-13)مدة العرض 104 دقيقة اللغة الأصلية الإنجليزيةالبلد الولايات المتحدة[1]موقع الويب expendablesthemovie.com… الطاقمالمخرج سيلفستر ستالو...

1944 battle of WW2 in the Netherlands Battle of BroekhuizenPart of the Western Front of World War IIDate27–30 November 1944LocationBroekhuizen, Netherlands51°29′N 6°10′E / 51.483°N 6.167°E / 51.483; 6.167Result British victoryBelligerents  United Kingdom  GermanyStrength 300 200Casualties and losses 43 killed140 wounded 17-60 killed139 capturedvteSiegfried Line campaign France Channel Coast Dieppe Le Havre Dunkirk Boulogne Calais Lorraine Nancy Domp...

 

 

River in Western Asia Shatt al-ArabShatt al-Arab pictured near Basra, IraqDrainage basin and two major tributariesLocationCountryIraq, Iran, Kuwait[1][2]Physical characteristicsSourceEuphrates • elevation4 m (13 ft) 2nd sourceTigris • elevation4 m (13 ft) Mouth  • locationPersian Gulf • coordinates30°24′15.59″N 48°09′3.60″E / 30.4043306°N 48.1510000°E࿯...

 

 

عسر الطمث معلومات عامة الاختصاص طب الأسرة  من أنواع اضطراب الدورة الشهرية،  وخط الألم الحوضي  تعديل مصدري - تعديل   عُسْر الطمث[1] (بالإنجليزية: Dysmenorrhea)‏ ويعرف أيضًا بآلام الدورة هو ألم دوري يحدث أسفل البطن وبدايته من وقت ابتداء الدورة الطمثية أو قبلها مباشرةً...

Historical region in central India Dakshina Kosala (in east-central India), c. 375 CE Dakshina Kosala (IAST: Dakṣiṇa Kosala, southern Kosala) is a historical region of central India. It was located in what is now Madhya Pradesh and Chhattisgarh along with parts of Western Odisha.[1] At its greatest extent, it may have also included a part of the Vidarbha region in present-day Maharashtra.[2] Its capitals at various times included Bhadravati, Sirpur (ancient Shripura), Tuma...

 

 

Tali sepatu hitam Tali sepatu atau ikat sepatu adalah sistem yang umum dipakai untuk mengikat sepatu, bot atau alas kaki lain. Mereka biasanya terdiri dari sepasang tali atau ikatan, satu untuk setiap sepatu. Rujukan Pranala luar Lihat entri shoelace di kamus bebas Wiktionary. Wikimedia Commons memiliki media mengenai Shoelaces. Ian's Shoelace Site — Extensive discussion of ways to lace shoes and tie knots in shoelaces Shoelace Length Calculator at Ian's Shoelace Site Tying instruction...

 

 

Voce principale: Associazione Calcio Monza Brianza 1912. Associazione Calcio MonzaStagione 1952-1953Sport calcio Squadra Monza Allenatore Annibale Frossi Presidente Pino Borghi Serie B4º Maggiori presenzeCampionato: Lovati (34) Miglior marcatoreCampionato: Cuzzoni (10) StadioSan Gregorio 1951-1952 1953-1954 Si invita a seguire il modello di voce Questa voce raccoglie le informazioni riguardanti l'Associazione Calcio Monza nelle competizioni ufficiali della stagione 1952-1953. Indice 1 ...

21°47′S 48°11′W / 21.783°S 48.183°W / -21.783; -48.183 阿拉拉夸拉(葡萄牙语:Araraquara)是位于巴西东部圣保罗州的一座城市,人口约200,000。 由于气候炎热,因此阿拉拉夸拉被称为“太阳之家(Sun's Home)”。 参见 聖保羅州市鎮列表 參考 Population at Censo 2010 (PDF). IBGE.gov.br. [13 Jul 2011]. (原始内容存档 (PDF)于2016-03-04) (葡萄牙语).  Municipal Profile at SEADE....

 

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: History of the Jews in Cincinnati – news · newspapers · books · scholar · JSTOR (March 2019) (Learn how and when to remove this message) Postcard of St. Paul Episcopal Cathedral (destroyed 1937) and Plum Street Temple The history of the Jews in Cincinnati occup...