Easily Copy/Delete Hidden Files in a Directory
Those nasty little dot files… When I tried to setup a Gitlab continuous deployment, I encountered a tiny problem: How to remove all files within a Linux directory? Apparently it is quite easy. Just with a simple rm -rf dir/* Wrong! The above command rm -r dir/* only remove all visible files and directories from the directory dir.