Monday, May 13, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 1667  / 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
nerta questions
Thu, May 12, 22, 16:04, 2 Years ago
Thu, Dec 2, 21, 09:19, 3 Years ago
Thu, May 27, 21, 00:41, 3 Years ago
Sun, Dec 11, 22, 08:33, 1 Year ago
;