@[email protected] to [email protected] • 1 year agoWhat is the most destroying command you can type in the Linux terminal?message-square122fedilinkarrow-up1135arrow-down18
arrow-up1127arrow-down1message-squareWhat is the most destroying command you can type in the Linux terminal?@[email protected] to [email protected] • 1 year agomessage-square122fedilink
minus-square@[email protected]linkfedilink8•1 year 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@[email protected]linkfedilink1•1 year agolinux rookie here, what’s the command to reverse an alias then? do you just “alias ls ls” to overwrite it?
minus-square@Chobbeslink3•1 year agoYou can use unalias, or you can use a backslash in front of an aliased command or surround it in double quotes to ignore the alias temporarily.
minus-square@[email protected]linkfedilink3•1 year agoBacklash. \ls would get you regular ls. Note that ls already is aliased on some popular distros with some common flags.
minus-square@neonredlink2•1 year agoThat’s nice. using systemctl poweroff adds a bit of extra round trip time…
deleted by creator
Glorious.
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?
You can use unalias, or you can use a backslash in front of an aliased command or surround it in double quotes to ignore the alias temporarily.
Backlash. \ls would get you regular ls. Note that ls already is aliased on some popular distros with some common flags.
That’s nice.
using
systemctl poweroff
adds a bit of extra round trip time…