Search code examples
unixhiddenmv

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


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.


Solution

  • This worked to me:

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

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