File not visible in Finder

finderterminal

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?

Best Answer

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