Category bash

self deleting bash script

How to create a bash script that deletes itself This script will delete itself via the shred command (secure deletion) when it exits #!/bin/bash # # Author: Steve Stonebraker # Date: August 20, 2013 # Name: shred_self.sh # Purpose: securely…

Bash Cheat Sheet

Here’s my bash cheat sheet: Tests Combining [ condition ] && action; # action executes if condition is true. [ condition ] || action; # action executes if condition is false. Filesystem related tests We can test different filesystem related…