Wednesday, May 8, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 1665  / 2 Years ago, tue, july 5, 2022, 12:36:59

How do I remove the PWD from the terminal? I'm not referring to the command but the automatic display next to my username@hostname. I would like it to work more like it does on other distros.



Thank you.


More From » command-line

 Answers
3

Go to your home directory and edit .bashrc file. There you can find lines that look similar to this one:




PS1='${debian_chroot:+($debian_chroot)}u@h:w$ '




Delete w and current working directory will dissappear.


[#34136] Thursday, July 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
;