File not visible in Finder

I've saved a file with the name filename\.svg and it didn't appear in finder. When I check terminal, there was a file named .svg in the folder I saved my file. I changed its name to test.svg but it still doesn't appear in Finder. Here is a screenshot from terminal:

Terminal ls output

How can I make this file visible in Finder?


In order to make only this specific file visible in Finder, try the following command using Terminal.app from Applications > Utilities:

$ cd /path-to-folder/where/invisible-file/is-located/
$ chflags nohidden ./test.svg

Hope this helps


From this tutorial on MacWorld, here is a way to show hidden files in the Finder:

Open a terminal, and enter this command at the Bash prompt:

$ defaults write com.apple.finder AppleShowAllFiles YES

Then restart the Finder with the following command (also from terminal):

$ killall Finder

The next time you open a Finder window, your hidden files should be visible.

To echo what Oliver said, you can also use chflags to alter the "hidden" property on a specific file. (chflags man page)

chflags nohidden hiddenfile.ext