3 ms·
When root or prod, the paranoid (like me) always start every mutating command with a '#' to prevent a sneeze from prematurely sending the command and doing dama
by verytrivial 11y ago
When root or prod, the paranoid (like me) always start every mutating command with a '#' to prevent a sneeze from prematurely sending the command and doing damage.
- Tiksi 11y agoI'm a fan of echo, especially for loops: for i in some/files/*; do echo mkdir -p ${i%%.*}; echo mv "${i}" "${i%%.*}/${i}"; done That way I can see what it's gonna evaluate to first.
- elcct 11y ago[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” For a good measure at the end of the day
- int0x80 11y agoOh, the good ol' shell russian roulete.