Slashdot Mirror


What Does Your Command Prompt Look Like?

rogain writes: "Show your commandline coolness and post your ubergeek .profile Donate a clue to the newbie hordes amazed that you can even change the command prompt! A nerdly sort of show-me-yours and I'll-show-you-mine kind of thing." I've attached mine below, but its kinda boring. I'm looking forward to seeing someone come up with a cooler one!

Here's mine:
PS1="$E\033]2;\h:\u:\w\007\033]1;\h\007$R$E$REDBLK$R\u$E$PPLBLK$R@$E$REDBLK$R\h$E$NONE$R\w>"

21 of 568 comments (clear)

  1. I good trick to play by smartin · · Score: 5

    Change someone elses prompt to "". Drives them crazy
    until they figure it out.

    --
    The difference between Canada and the USA is that in Canada healthcare is a right and gun ownership is a privilege.
    1. Re:I good trick to play by PD · · Score: 4

      If they leave their system for just a minute, first send an e-mail to everyone in the company saying "This is Joe's computer. Joe left me logged in. Joe shouldn't have done that."

      Then, type echo "echo sleep 1 >> .profile" >> .profile

      Damn this system is getting slower every time I log in!

    2. Re:I good trick to play by rdejean · · Score: 4

      my favorite is to change their prompt to: PS1="Login incorrect\n\nlogin: "

    3. Re:I good trick to play by American+AC+in+Paris · · Score: 5
      Change someone elses prompt to "". Drives them crazy until they figure it out.

      Heh. Reminds me of the time that my best friend changed my cell phone banner to say, " *Ringer Off* ". You can imagine my frustration (and his amusement...)

      --

      Obliteracy: Words with explosions

  2. 'leet color prompt by betaray · · Score: 4

    ph33r my prompt! Color, upper asci, username, machine and date!!!

    (Actually I kinda ripped the idea off from Mandrake (the Enlightenment guy), but there are some changes).

    export PS1="\[\033[11m\[\033[0;34m\[\332\304\[\033[1;34m\ [\304\[\033[0;34m\[(\[\033[0;36m\[\u@\h\[\033[0;34 m\[)-(\[\0
    33[1;34m\[\`date +\"%a %B %-d %l:%M%P\"\`\[\033[0;34m\[)\[\033[1;34m\[\304\[\033 [0;34m\[\304\n\300[\[\033[0;36m\[\w\[
    \033[0;34m\[]:\[\033[0;0m\[ \[\033[10m"

  3. Command prompt? by grub · · Score: 4

    I have a Mac here, so in my house a command prompt is something that triggers my wife to bark orders at me. :)

    grub

    yes it's a joke

    --
    Trolling is a art,
  4. Re:WARNING: read this first before you cut'n'paste by Surak · · Score: 5

    Set a password on the nobody account and give it a shell... so you can log in.

    passwd nobody
    chsh nobody /bin/sh

    then telnet into your box:

    telnet 127.0.0.1

    login as nobody.
    Then they can put in all the exits they want and it won't make a diff, especially if you use something like ktelnet or gtelnet.

  5. Bash Prompt Goodness by BuckshotJones · · Score: 5

    Check out http://www.shelluser.net/~giles/bashprompt/prompts /index.html for some really extravagent Bash prompts.

  6. TL1 geeks: My prompt is GR-253-CORE compliant! by Myself · · Score: 4

    7. If your prompt is
    ;

    RYLOMIMNK02 01-07-06 13:08:40
    M 0169 COMPLD
    ;

    Chances are good you draw lots of blank stares at parties from packet geeks who don't grok circuit switching. If you've ever replied "SNVS" to someone who bothered you while you were sleeping, or "PICC" to a telemarketer, you need to get out more, but I sympathize.

  7. My Phone by Xenex · · Score: 5
    The logo on my mobile phone (a Nokia 6210) is

    [root@6210 /]#

    :-)

  8. if your prompt looks like.... by krokodil · · Score: 5

    If your command promt looks like:

    1. C:\>

    You are conservative person. It takes you
    some time to accept new techology

    2. #

    You are respected by colleagues and feared by enemies.

    3. joe@cube.some.com:~/joe[12:35 - Fri Jul 6]>
    You really like techology, like to learn new things, do not afraid to experiment. You going
    to move out of parents place soon.

    4. cube:/usr/src/kernel>

    With your 20 years if Unix experience you should have no problem finding new job.

    5. (Press ^D when you done with fsck)#

    Difficult times are ahead of you. Do not lose
    your courage and patience.

  9. Re:Yours looks EASY by Drone-X · · Score: 5
    Color?? Excuse me for breathing, but I'm using a paper teletype and MAN it's hard enough to use Lynx on this thing without all the frilly escape codes.
    Using colors on the shell is quite useful if you telnet/ssh into other boxes. That way you can easily spot what computer you're working on and not screw up on the wrong computer :).
  10. Funny one I'm stealing from my lecturer... by lpontiac · · Score: 4

    # (bash syntax, alter appropriately. BTW, not intended for *your* .profile :)

    export PS1="\nYou are in a room with many doors, all alike\n# "

    alias cd="echo That door is locked"
    alias pwd="echo You are lost"
    alias ls="echo It is too dark to see anything"
    alias cat="echo It is too dark to see anything"
    alias vi="echo You\\'re not strong enough to perform that action"
    alias startx="echo I don\\'t understand"
    alias exit="echo You don\\'t know the way out"

    # And in case they try to remove their .profile...
    alias rm="echo I\\'m sorry Dave, I\\'m afraid I can\\'t do that"

  11. Re:Yours looks EASY by CaptainZapp · · Score: 5
    Using colors on the shell is quite useful if you telnet/ssh into other boxes. That way you can easily spot what computer you're working on and not screw up on the wrong computer :).

    Rats! I can either mod you up (which your post is well worth of) or comment. A conflict of interest if I've ever seen one. %-:)

    Nevermind, you raise an extremely important point. In my professional work environment (where I tend to fuck around with big bastardized databases) my arse was saved more then once, by using this technique.

    I might get odd looks (hey, that yellow on red is totally HORRID!!!)

    But considering that such a horrid color setup definitely prevents me from issuing a DROP DATABASE CorporateCritical on the wrong telnet session is well worth the hassle

    --
    ich bin der musikant

    mit taschenrechner in der hand

    kraftwerk

  12. DOS Format C? by CritterNYC · · Score: 5

    I used to do this to unsuspecting DOS/Windows users:

    prompt $p$gformat c:

    This yields a prompt of:

    c:>format c:

    It scares the hell out of newbies.

  13. all evil by X-Dopple · · Score: 4

    [root@allevil]$

    Yes, my machine is named 'allevil' and I am the root of it.

  14. Me vs. The Slashdot Filters by American+AC+in+Paris · · Score: 5
    Heh. I'd show ya my command line prompt...

    ...but it seems that it's too lame for Slashdot:

    Lameness filter encountered. Post aborted.

    Reason: Junk character post.

    Addendum: ...too much, too much! I tried to post the above, and got this as a response:

    Easy does it!
    This comment has been submitted already, 276231 hours , 34 minutes ago. No need to try again.

    I swear that I wasn't on the Internet then. Hell, I wan't even born back then...

    --

    Obliteracy: Words with explosions

  15. prompt by KupekKupoppo · · Score: 5

    c:\>

  16. Practical jokes by karmawarrior · · Score: 4
    I just modified a co-worker's ksh prompt which was something like:

    PS1="$PWD> "

    to

    PS1="
    Memory fault(coredump)^G
    $PWD>"
    (^G being the "beep" character.)

    While I was at it, I modified his MSDOS prompt to look similar to his Cygwin prompt, and his Cygwin prompt to:

    PS1="$(pwd -P | tr / \\\\)> "

    He comes back from vacation on Tuesday. Can't wait...
    --

    --
    KMSMA (WWBD?)
  17. WARNING: read this first before you cut'n'paste!!! by sofar · · Score: 5


    Some of the prompts posted in these threads will severely harm your system, a couple have already been spotted actually performing 'rm -rf /' or something else pretty bad.

    For the experts here: OK, some people need to find out the hard way

    For the newbies: read this:

    I've you're really lazy, open a shell, change to root and type 'su nobody', this way, you cannot harm you own system as bad as root or a normal user (although you might lose some unimportant stuff)...

    bit me!

  18. Only a geek by Violet+Null · · Score: 5

    For the longest time at home, my prompt was:

    It is very dark. If you continue, you are likely to be eaten by a grue.
    >