{"id":20757,"date":"2017-01-12T06:27:21","date_gmt":"2017-01-12T06:27:21","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=20757"},"modified":"2024-09-04T07:28:12","modified_gmt":"2024-09-04T07:28:12","slug":"how-to-view-hidden-files-and-directories-on-linux","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-view-hidden-files-and-directories-on-linux\/","title":{"rendered":"How to view Hidden Files and Directories on Linux"},"content":{"rendered":"<h1>How to view Hidden Files and Directories on Linux<\/h1>\n<p>Let&#8217;s see how to view hidden files and directories on Ubuntu Linux using <em>Terminal<\/em>. <i>The Terminal<\/i> is the default command-line interface for Ubuntu distribution.<\/p>\n<h2>Hidden files<\/h2>\n<p>A filename that begins with a period is a hidden file in Linux.<br \/>\nThe normal ls command does not display it.<\/p>\n<p>The command<em> ls -a<\/em> displays all the files. (the hidden files as well). We can also provide a <em>-l<\/em> command line switch for the long format. Many programs use hidden files for their configuration files.<\/p>\n<h2><b>Command<\/b><\/h2>\n<p>To view Hidden files and directories on Linux we can use the ls command.<\/p>\n<p>Launch Terminal<\/p>\n<p>Change the working directory to the path(<em>cd<\/em>) where you want to view the hidden files and directories.<\/p>\n<p>Issue the following command:<\/p>\n<p><strong>$ ls -l -a\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20762\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Hidden-Files-and-Directories.png\" alt=\"Hidden Files and Directories\" width=\"1505\" height=\"812\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Hidden-Files-and-Directories.png 1505w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Hidden-Files-and-Directories-300x162.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Hidden-Files-and-Directories-1024x552.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Hidden-Files-and-Directories-768x414.png 768w\" sizes=\"auto, (max-width: 1505px) 100vw, 1505px\" \/><\/p>\n<p>The default <em>ls<\/em> command ignores the entries that start with dot(.). We can use the flag -a to suppress this to show the entries with the dot.<\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;<\/p>\n<p>Linux Commands Tutorial page:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/linux-basic-commands-tutorial\/\">https:\/\/www.testingdocs.com\/linux-basic-commands-tutorial\/ <\/a><\/p>\n<p>More Information on Ubuntu Linux:<br \/>\n<a href=\"https:\/\/ubuntu.com\/\" rel=\"noopener\">https:\/\/ubuntu.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to view Hidden Files and Directories on Linux Let&#8217;s see how to view hidden files and directories on Ubuntu Linux using Terminal. The Terminal is the default command-line interface for Ubuntu distribution. Hidden files A filename that begins with a period is a hidden file in Linux. The normal ls command does not display [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-20757","post","type-post","status-publish","format-standard","hentry","category-linux","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=20757"}],"version-history":[{"count":11,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20757\/revisions"}],"predecessor-version":[{"id":24088,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20757\/revisions\/24088"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=20757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=20757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=20757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}