In this quick and simple post I will be showing you an easy way to automatically run commands over SSH. This method works great with bash loops if you need to run the same commands over multiple servers. Using this method automatically disconnects once the command or commands are finished executing, you will receive the full output however.
While you can use the dd command to overwrite your files, you can also use shred. Shred by default will overwrite your files 3 times and is designed to make it very hard to recover those files. There are several options you can use such as how many times you wish to overwrite the specified file or files, how many bytes, etc. Here are the available options below.
In this guide I will be showing you how to wipe your hard drives using the dd command. You have a few options when it comes to wiping your hard drives, you can wipe the MBR (master boot record) or you can wipe the entire drive. If you are looking for a guide on wiping specific files only, then please read about the shred command.
In this guide I will be showing you how to reboot as-well as how to shutdown a Linux server using the command line. There are actually a couple of different ways you can do this, you can do this by logging into the server over SSH as-well as using remote IPMI commands to power cycle the server.
In this easy guide I will be showing you how to use the Linux date command. The date command can be used to see what the date is, what time it is, as-well as set system time (with root/sudo privileges). I will give a few examples as-well as explain the options below since you can format the output to get exactly the information you are looking for as-well as formatted the way you want it.