LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2023, 05:11 AM   #1
Cecilie
LQ Newbie
 
Registered: May 2023
Posts: 1

Rep: Reputation: 0
Ubuntu


I'm trying to perform a task in the terminal where I want to personalize the pwd output. When I follow the instructions on how to do this, I get error code: 325, and after that only letters from the alphabet come up when I scroll up and down in the terminal and I can't type anything. Does anyone know how I can resolve this?
 
Old 05-27-2023, 05:21 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,888

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
Hello, and welcome here, at LQ

unfortunately you did not give us any usable details:
What task do you want to perform?
What instruction(s) did you follow?
What was the exact/full error message?

Probably typing reset (+enter) will help you, but without details hard to say more.
 
1 members found this post helpful.
Old 05-27-2023, 05:50 AM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.
 
1 members found this post helpful.
Old 05-27-2023, 06:00 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,594
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
That code looks like a vi error to me. Did you crash out of the editor? If so, there's a left-over swap file that may be giving you grief.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Ubuntu 12.10 or Upgrade to Ubuntu 12.10 (Quantal Quetzal) from Ubuntu allu john sudhakar Linux - Newbie 1 10-25-2012 11:59 PM
LXer: Hereā??s Two Method That is Helping Ubuntu User to Upgrade Ubuntu 11.10/10.04 to Ubuntu 12.04 LT LXer Syndicated Linux News 0 05-12-2012 06:50 PM
LXer: Ubuntu live CD will let you upgrade to newer Ubuntu versions Ubuntu 11.04 Development LXer Syndicated Linux News 0 03-01-2011 03:20 PM
LXer: Ubuntu Restricted Extras - Lets Ubuntu Play Everything [Ubuntu for Beginners Sc LXer Syndicated Linux News 0 04-20-2010 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration