Last Updated: May 19, 2016
· blainesch

Trolling your friends Command Line

We recently had a new rule to lock our computers when we leave. A few of the people on my team are having issues with this. I've done things from simply reminding them to changing their keyboard to another language. I decided to take it a step further.

This will appear to be "formatting" their hard drive, and then proceed to remove all of their PATH so they don't have access to any commands.

function cd() {
    # Aliases
    alias cd=''
    alias exit=''

    # Variables
    SLEEP=`which sleep`
    SEQ=`which seq`

    # Remove Path
    export PATH=''

    # Script
    echo -e "${RED}WARNING: FORMATTING HARD DRIVE.${NONE} This may take a few minutes."
    for i in `${SEQ} 1 300`;
        echo -n '.'
        if [ $(( $i % 50 )) -eq 0 ] ; then
        `${SLEEP} 0.1`

9 Responses
Add your response


Nice... another option is to send a meeting invite for lunch from their computer... but this is a lot cooler.

over 1 year ago ·

I think it's childish bullying behavior. Keep your fingers from other people's stuff. Reiterate the importance of locking in a way that fits a grown-up

over 1 year ago ·

:D Nice. We do something similiar like @victorbrca. If we see a unlocked PC we write a Mail to all "I will bring a cake tomorrow." :D

over 1 year ago ·

@ruurd Assuming you're actually a prude and not trolling of course, but please keep the SJWing to tumblr. This is an innocent and quite funny prank. Bullying is a state of mind, not a sequence of actions.

over 1 year ago ·

@bvector Assume all you want. You've known me for years. You're right. Bullying is a state of mind. Your mind. Maybe the prank is innocent, the laziness or ineptitude of not wanting or being able to explain the necessity of locking a workstation is what is childish and immature. This kind of behavior is what makes many workplaces where a lot of IT people are rather hostile. I can imagine why women don't want to work there.

over 1 year ago ·

Edit their ~/.inputrc file:

"vi": "emacs"
over 1 year ago ·

@ruurd nevermind, you just proved you're trolling. thanks for the laugh ^5

over 1 year ago ·

If it's a rule then non-compliance seems like grounds for managerial review and/or discipline in a formal business setting. "Pranking", whether respectful of someone's feelings or not, seems like a more friendly way to 'tune' a workplace and less cold than being just another no-tolerance policy enforcer if you ask me.

over 1 year ago ·

in our company when a person forgets his workstation unlocked we send an email to the line manager by the subject "resignation notice", of course we let the manager know in advance it's a prank so he can be "in" the game as well :P

over 1 year ago ·