How do I rename all folders and files to lowercase on Linux?

Smaller still I quite like:

rename 'y/A-Z/a-z/' *

On case insensitive filesystems such as OS X’s HFS+, you will want to add the -f flag:

rename -f 'y/A-Z/a-z/' *

Leave a Comment