Find the answer to your Linux question:
Results 1 to 4 of 4
How would I go about telling 'bash' to stop showing me what DIR I am in all the time. I usually know where I am and if I don't I ...
  1. #1
    Linux Enthusiast flipjargendy's Avatar
    Join Date
    Aug 2004
    Location
    Xanadu, Titan, Saturn
    Posts
    610

    Removing the automatic displayed DIR in the shell?

    How would I go about telling 'bash' to stop showing me what DIR I am in all the time. I usually know where I am and if I don't I can just type 'pwd'. I've been going into some deep directories and it's becoming annoying having all of that text displayed for no reason. I've looked in the 'bash man' pages but haven't found anything... maybe I have missed it.

    Here's what I'm referring to:

    root@Mimas:/opt/lampp/htdocs/wiseEssentials/includes/templates/wiseTemplate/css# cd /usr/share/
    Running Linux Since 2001®
    Registered Linux User #430868 - Since 9•12•06

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    You need to modify the $PS1 variable, more info here Custom Bash Shell Prompts | HackTux
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Open .bashrc file and remove \w from value of PS1.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Enthusiast flipjargendy's Avatar
    Join Date
    Aug 2004
    Location
    Xanadu, Titan, Saturn
    Posts
    610
    Thanks! I knew it would be easy but I just couldn't find the info.

    All I had to do was type: $ export PS1="<\u@\h>$ " which produces <flipjargendy@Mimas>$
    Running Linux Since 2001®
    Registered Linux User #430868 - Since 9•12•06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...