Hide & Unhide folder like windows in Mac os x

Mac osx hide/unhide file/folder

Use following command to hide specific folder/file.

Use following command to unhide specific folder/file.

Here is the example of hidden file.