How to show hidden files and folders in Finder?

I need to back up my repository so I need to find the file, right? I use SurceTree and presume the repository is hidden. I created it in a given folder, and did not see the file even though it functioned fine.

So I presume it's hiding it so I do not delete it by mistake.

Thanks.
newbiewebSr. Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan HendersonRetired marine engineerCommented:
This page shows you how:
http://www.macosxtips.co.uk/index_files/quickly-show-hidden-files.php

It also shows you how to set up a keyboard shortcut.
0
AnuroopsunddCommented:
Open terminal  and put below command
defaults write com.apple.Finder AppleShowAllFiles YES

To make the command take effect, you need to restart the Finder. One way to do this is to hold down the Option key, then click and hold on the Finder icon in the Dock. When the contextual menu appears, select Relaunch and the Finder will restart.

When it does, you’ll find that you can now see every single file and folder on your Mac


http://www.macworld.com/article/1051830/showallfinder.html
0
Eoin OSullivanConsultantCommented:
If you simply want to check if there are hidden files or folders .. simply open Terminal App ... switch to the folder concerned .. by entering 'cd '  and the folder path .. or you can type 'cd ' and then drop the folder into the terminal window.
cd /path/to/the/folder

Open in new window


Once you are in the folder ... type
ls -al

Open in new window


This will show all files and folders including hidden files and folders beginning with .
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

newbiewebSr. Software EngineerAuthor Commented:
If I were to make it the default to always show hidden files, would I be able to differentiate them from normal files?  I am not sure I would make it the default unless I could also see it was hidden by default.
0
Eoin OSullivanConsultantCommented:
I find that showing all hidden files by default is VERY annoying as these files are throughout OSX and clutter up your finder and folder views.

You are best to toggle it on an off using the Terminal command (which involves restarting the Finder) or use the Terminal to list the contents of a folder as I describe .. or use a 3rd party Finder alternative such as Path Finder or TotalFinder which allow you to see hidden files without running terminal commands or restarting the Finder.

I must say that PathFinder (http://cocoatech.com/) is a great utility and especially for former- Windows users as it has several powerful features including showing hidden files, sorting folders in certain ways and a lot more that is missing from the Finder
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
Thanks!
0
newbiewebSr. Software EngineerAuthor Commented:
How do I hide the hidden files again?

I wanted to ask before using:

defaults write com.apple.finder AppleShowAllFiles FALSE
0
Eoin OSullivanConsultantCommented:
correct .. change TRUE to FALSE ... restart Finder afterwards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.