I have a small problem with the prompt on a debian server, I keep getting the variables as literals:
PS1='\u \w $'
gives me a prompt showing:
\u \w $
where it should imho show:
username dirname $
What am I missing here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you sure your shell is bash ? With other shells (such as dash), such variables may not work.