{"id":1511,"date":"2012-12-18T11:24:29","date_gmt":"2012-12-18T19:24:29","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=1511"},"modified":"2012-12-20T13:31:01","modified_gmt":"2012-12-20T21:31:01","slug":"hiding-and-showing-files-on-osx","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=1511","title":{"rendered":"Hiding and showing files on OSX"},"content":{"rendered":"<p>OSX Mountain Lion hides a lot of files that were visible in previous versions. You make them visible in the finder with a single line of code in the Terminal. <\/p>\n<p>For example, this line makes the contents of the \/usr directory visible.<\/p>\n<p><code class=\"preserve-code-formatting\">sudo chflags -R nohidden \/usr<\/code><\/p>\n<p>And this one makes your Library folder and its contents visible.<br \/>\n<code class=\"preserve-code-formatting\">sudo chflags -R nohidden ~\/Library<\/code><\/p>\n<p>And this one makes the main Library folder and its contents visible.<br \/>\n<code class=\"preserve-code-formatting\">sudo chflags -R nohidden \/Library<\/code><\/p>\n<p>If you are setting up Apache on you computer so you can test websites before deployment, you might want to make the private folder visible.<br \/>\n<code class=\"preserve-code-formatting\">sudo chflags -R nohidden \/private\/<\/code><\/p>\n<p>The first part of the command, <i>sudo<\/i>, just means that you will be prompted for your computer password before the command is executed.<\/p>\n<p>Sometimes I want to see all the files in the Finder so I enter this line in the terminal.<br \/>\n<code class=\"preserve-code-formatting\">sudo defaults write com.apple.Finder AppleShowAllFiles TRUE<\/code><br \/>\nRestart the Finder with<br \/>\n<code class=\"preserve-code-formatting\">killall Finder<\/code><br \/>\nor use Force Quit to relaunch the finder.<br \/>\nAfter I\u2019ve done whatever it was that required access to all the files, I usually turn them back off by changing TRUE to FALSE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OSX Mountain Lion hides a lot of files that were visible in previous versions. You make them visible in the finder with a single line of code in the Terminal. For example, this line makes the contents of the \/usr directory visible. sudo chflags -R nohidden \/usr And this one makes your Library folder and &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=1511\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hiding and showing files on OSX<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1511","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1511"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1511\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}