Find Copy and Rename Files in a Bash Script

The find command is very powerful, especially when combined with the -exec option, you can find and copy files to different locations, even renaming them at the same time. The difficulty comes however, when trying to alter the filename (retaining the original filename), for example to add a new prefix or suffix.

Changing Cygwin Username and $HOME Directory

On first installing Cygwin, the username is inherited from Windows, and the $HOME directory is created from this username. This is particularly annoying if Windows was originally set up with a multi-word username such as “Firstname Lastname”. This quick guide will show how to change the username and $HOME directory to something more simple.