What is the most destroying command you can type in the Linux terminal? oriond ( @oriond@lemmy.ml ) Asklemmy@lemmy.ml • 9 months ago message-square58fedilinkarrow-up183
arrow-up183message-squareWhat is the most destroying command you can type in the Linux terminal? oriond ( @oriond@lemmy.ml ) Asklemmy@lemmy.ml • 9 months ago message-square58fedilink
minus-square sndrtj ( @sndrtj@feddit.nl ) linkfedilink10•9 months agoSomething I did to someone who needed to know the effects of not locking ones screen when away: alias ls to echo 'Error: file not found'. Took them a good hour to figure out what was wrong with their machine 😅
minus-square FIST_FILLET ( @FIST_FILLET@lemmy.ml ) linkfedilink2•9 months agolinux rookie here, what’s the command to reverse an alias then? do you just “alias ls ls” to overwrite it?
minus-square sndrtj ( @sndrtj@feddit.nl ) linkfedilink4•9 months agoBacklash. \ls would get you regular ls. Note that ls already is aliased on some popular distros with some common flags.
minus-square flashgnash ( @flashgnash@lemm.ee ) linkfedilink1•9 months agoAlias ‘ls’ to ‘sl’ for fun times
Something I did to someone who needed to know the effects of not locking ones screen when away: alias
ls
toecho 'Error: file not found'
. Took them a good hour to figure out what was wrong with their machine 😅linux rookie here, what’s the command to reverse an alias then? do you just “alias ls ls” to overwrite it?
Backlash. \ls would get you regular ls. Note that ls already is aliased on some popular distros with some common flags.
There’s unalias
Alias ‘ls’ to ‘sl’ for fun times