Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-02-2003, 05:27 AM   #1
Registered: Aug 2003
Location: Poland
Distribution: Slackware 9.1
Posts: 34

Rep: Reputation: 15
shell, path and user

Hello ,
Does anybody know how to show in shell user name and actaul path instead only name of executing kind of shell (in my example this is bash). I know that it probably depends on files bashrc and profile in etc, and home directory but what kind of elements should there be to show that??

Thanks for interesting
Old 09-02-2003, 06:16 AM   #2
Registered: Apr 2003
Location: Australia
Distribution: RedHat 9.0 / Slackware 9.0/ FreeBSD 4.8 / Solaris 8 x86 / Mandrake 9.0
Posts: 90

Rep: Reputation: 15
PS1=\u@\h \W\w

that might or might not be what you want, if not:

$man bash
Old 09-02-2003, 06:37 AM   #3
Registered: Aug 2003
Location: Poland
Distribution: Slackware 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
O.k i copied my Redhat version of bashrc on slackware distibution and it works, this is too complited for me becuase i am not programming in script languages, i stay with C


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
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
C shell and env $PATH vikinnun Programming 1 11-10-2004 09:02 PM
Editiing my PATH for a bash shell??? lemay_jeff Linux - Newbie 3 07-06-2004 02:45 PM
changed the login shell in /etc/passwd to the wrong path infamous41md Solaris / OpenSolaris 3 07-03-2004 07:32 PM
Edit User Command Path dwpondscum Linux - Distributions 2 06-10-2003 10:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 PM.

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