Often being quick with my hands but slow with my mind leads to accidents where files are mistakenly deleted, increasing workload. For example, like this.
Therefore, I wrote a simple script to replace the rm
command.
#!/bin/bash
tempPath="/garbage"
if [ ! -d "$tempPath" ]; then
mkdir $blankPath
fi
mv $1 $tempPath