Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-13-2009, 02:51 AM   #1
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Rep: Reputation: 15
Bash hides current directory

Hey, newb question: In my terminal, I always see "bash-3.1 #" (sans quotes) as my prompt. How can I make it so I can see my current directory instead? If I don't run startx (just the basic command prompt when I boot up), it shows up just fine, like "/foo/bar #".

I'm running xfce4 in slack 13.0.

I tried searching for something about this, but I have no idea what the proper terminology is. Thanks in advance.
Old 09-13-2009, 03:03 AM   #2
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
stick this in ~/.bashrc

PS1="[\u@\h \W]\$"
Old 09-13-2009, 03:32 AM   #3
Registered: Jul 2009
Location: Germany
Distribution: Arch
Posts: 52

Original Poster
Rep: Reputation: 15


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Expression: Current Directory & All Subdirectories Below gmcauley Programming 2 01-01-2007 02:36 PM
Bash to find and disect current working Directory carl0ski Linux - General 4 10-28-2006 04:36 AM
cd keeps snapping back to current directory when called from bash script ghrellin Linux - General 5 08-28-2005 12:50 PM
setting bash to look in current directory before searching the path muhkuhmasta Linux - Newbie 4 09-21-2004 02:08 AM
BASH: How to get current workin directory? gmitra Programming 9 09-20-2003 10:30 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration