How to access or remove files with leading dash in filenames on Linux

Some Linux tools generate file with leading dash or hyphen (“-“) in filenames. Or your hand-written program can accidentally produce filenames starting with minus. If you attempt to remove, copy, rename, or otherwise access such files by using ls, rm, cp, mv or chmod, you will get the following errors. [cmd]: invalid option — That […]
Continue reading…

 

How to find recently modified files on Linux

There are various occasions where you would like to search for files that have been changed/created in your Linux system recently or within any time frame. For example, as a system admin, you have done some configuration on your Linux system, but forgot where it was saved. You want to verify whether/how your Linux file […]
Continue reading…