how to see the complete path when using text mode?
Running Linux in text mode only (runlevel 3, I mean) the prompt shows only the last directory I am in.....
for example: if I am in /home/myname the prompt shows only "myname" as directory (so, watching the prompt only, without using pwd, it's impossible understand if I'm in /home/myname or /whatyouwant/myname for example) How is possible shows the complete path in the prompt? What I should configure? Thanks a lot in advance!!!!!!!!!!!!!!!! |
http://www.linux.org/docs/ldp/howto/...sequences.html
check out that .. your going to want to add : Code:
\w |
I'm sorry to bother you.......
I just checked etc/bashrc but I don't find PS1 or I don't know how/where I have to add "/W" ....... Can you help me, please? |
I did it :cool:
P.S. when I start linux I get a "~" only (instead of "/home/myusername") as path.... after, changing directory, the system seems to remeber the complete path... is it normal? Thanks |
well the only time you will see that is when you are logged in as your normal user and you are located in the users home folder ...
the ~ is equivalent to /home/username ... so when you change to a differnet folder within your home folder as your normal user it will say : ~/newfolder ... this is the only time you will see the ~ ... |
Here is an example of a fancy prompt that may do what you wish. If not, see the link
Code:
# Celeron 850 tinwhistle .bashrc file for user fancy Sat Mar 27 01:08 PM fancy@uilleann /usr/src $ Sat Mar 27 01:08 PM root@uilleann /usr/src # |
All times are GMT -5. The time now is 06:12 PM. |