UNIX: How to change all hidden folders/files to visible in a directory

Harris Geo picture Harris Geo · Aug 5, 2013 · Viewed 9.7k times · Source

I have a directory with more than 100 hidden folders (.folder) and I want to make them visible (folder). Is there a way to do it with one command instead of doing this for each file separately? The command I have used so far is

mv .folder folder

Please help.

Answer

This worked to me:

rename 's/\.//;' .*

It looks for all files with .something and renames to something.