Timestamp bash_history with every command

When working on Linux it is often very helpful to review the commands that you have entered.  For example, you may want to paste some of the commands into a script or may want to recreate the steps to solve the problem you were working on. Here is how I … Continue reading

How to Install TSHARK in Unattended Mode via Script

After extensive searching the InterWebs and finding a lack of documentation on how to install TShark in a silent/unattended mode, I came across a related StackExchange post by Franck Dernoncourt that got me on the right track.  Here is what I came up with for Debian:

Background For a pet project … Continue reading

Bash Script Tests for OS and Run as Root

In my last post, I discussed using sed, the stream editor to make configuration file changes via a bash script.  There are two important factors to keep in mind: Many configuration file can only be modified as root, and The location of configuration files will vary depending on the Linux … Continue reading

Change config settings using a bash script

There is a trend to perform all system administration tasks using scripts. The benefit of this approach is that the scripts can be checked into a source control system, such as github. One great application of this strategy is the script that you use to harden your Linux systems.  This … Continue reading

Securely Delete Files with SDelete

Yesterday, I needed to securely delete a file from a computer that I was using at work and this computer did not have a utility to do that currently installed.  Remember that when you delete a file in Windows, you are removing only the reference to the file from the … Continue reading

  • The postings and views on this site are my own and do not necessarily reflect the positions, strategies, or opinions of any current or previous employer.