LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-02-2003, 06:27 AM   #1
marek
Member
 
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, 07:16 AM   #2
KDE4me
Member
 
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
.bashrc
PS1=\u@\h \W\w

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

$man bash
then:
/\\u
 
Old 09-02-2003, 07:37 AM   #3
marek
Member
 
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
 
  


Reply


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


All times are GMT -5. The time now is 05:14 AM.

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