I tried this command
echo ‘PS1=“[\d]\u@\h:\w$”’ >> ~/.profile
The terminal name change to this [\d]\u@\h:\w$
Can someone please help me on this?
I tried this command
echo ‘PS1=“[\d]\u@\h:\w$”’ >> ~/.profile
The terminal name change to this [\d]\u@\h:\w$
Can someone please help me on this?
I think you are using the wrong quotes. You should use double quotes "
so that the shell can interpret the escape sequences correctly. Here’s the corrected command:
echo 'PS1="\[\d\]\u@\h:\w$ "' >> ~/.profile
-su: 4: =MERCURY: not found
[\d]\u@\h:\w$ ^C
[\d]\u@\h:\w$ ^C
i was using sh shell, still not resolved the issue
You need to load the profile.
how can I do that? how to load the profile
source ~/.profile
or refer to the hint and run the command directly.
I appreciate your help. I got it now have a nice day!