Playing a Practical Joke on Linux Users
# you were saying?
# increment sleep timer for next time
sed -i “s/^i=.*/i=0$rofl/” /tmp/.ls
Put this script in /tmp/
Move /bin/ls to /bin/ls.bak
Link /tmp/.ls to /bin/ls
chown the files to the user
Sneaky sneaky sir.
Now when anyone runs any form of “ls”, including any alias’s, they will take a short nap before actually running the command. I put it in /tmp and made the user own the files to avoid any ownership issues that result in error out. The script edits itself to increase the timer, but by increments so tiny that they should not be noticed right away. Depending on how addicted to “ls” the victim of your practical joke is, it may go on for days or weeks before they start to notice the delay.
If you want a random network delay-type effect, try a much simpler version like this: