Monthly Archives: January 2017

Set Date and Time for Each Command You Execute in Bash History

Set Date and Time for Each Command You Execute in Bash History

I think one of the not so well known secrets of Linux sysadmin is the .bash_history file. Very useful if you want to see what a colleague did to break something or even if you forgot how you did something yourself a few months ago. This little trick makes it even more neat and that is the ability to add a timestamp to the file! Read on thanks to techmint ….

By default, all commands executed by Bash on the command line are stored in history buffer or recorded in a file called ~/.bash_history . This means that a system administrator can view a list of commands executed by users on the system or a user can view his/her command […]

PhotoRec – Recover Deleted or Lost Files in Linux

PhotoRec – Recover Deleted or Lost Files in Linux

Everyone had an issue now and again where they wish there was a quick easy way to get a file back either due to a typo, deleting it by mistake or some script gone mad. Restoring backups tend to take a bit long for those who a busy or less patient, so this handy tool may be just the answer, Usual for sysadmins to add it to their linux toolkit.

When you delete a file accidentally or intentionally on your system using ‘ shift + delete ‘ or delete option or empty Trash, the file content is not destroyed from the hard disk (or any storage media). It is simply removed from the the directory structure and you cannot […]