Cecille,
Welocme to the forum.
Quote:
I want to personalize the pwd output
|
First of all, typing pwd at a bash commad prompt will output the current working directory, or in other words, where you are in the tree on the systems hard drive. That is all pwd does. You can use the man command to learn more about any command; example type 'man pwd' ( no quotes ).
I suspect what you are trying to do is change the enviriomental variable ps1. ps1 stands for prompt string 1.
So, on my system here is a sample of what I get.
Quote:
> pwd
/home/cliff
(Sat May-5 6:36:28am)-(CPU 0.1%:0:Net 35)-(cliff:~)-(85M:188)
>
|
Line 1 is me typing pwd.
Line 2 is my current position in the directry tree.
Line 3 is the outpout of ps1.
Line 4 is a customized bash prompt. This is just bash waiting for my next input.
I hope that clarifies a few things.
Now, the next trick is to use your favouite browsers search function. For this example I typed 'linux how to customize ps1' ( quotes not required ). The first hit was
https://tecadmin.net/how-to-customiz...-ps1-in-linux/
It is a nice tutorial on how to change ps1. It was only the first one, that search will turn up lots of examples.
Notice, the first thing I entered was 'linux'. I do that to avoid tuns of hits for the OTHER operating system. The rest is what I was looking for. As a new user of linux, it takes some time to get a feel for what to ask in your search. Practice always will improve your abilities.
BTW, I have no idea what error code 325 is. Best guess is probably a syntax error of some sort. Bash is saying your input didn't make sense.
When asking for help, it helps us to help you to include the exact text of the input you typed.
Have a look at the url I posted, and if you need further help, post what you entered, the results that occured, and what you expected. More information is better that less when asking for assistance.
Hope this helps.