There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in #get-help.
Agree with a comment or answer? Like () to up-vote the contribution!
Still not sure what I did wrong in this lesson What was supposed to happen was the change of $ to >>. I keep getting The “X” instead of check off in the instructions. I have a screenshot if I’m allow to send it to a staff member I would be more than happy to. I’m not sure if its a bug or I did something wrong.
#open ~/.bash_profile or ~/.bash_rc or ~/.zshrc (if you're using catalina)
#in your text editor:
PS1="whatever you want it to be";
export PS1;
#save and exit
#in your terminal:
source ~/.bash_profile #or whatever was the name of the file you modified, it has to be the right one with your system for it to work
Good day. i am not sure what is wrong i have tried the code several times and it is not working. i think it is a bug or something.
nano ~/.bash_profile
when in nano;
export ps1=">> "
ctrl + 0
enter
ctrl + x
when back in command line;
enter
i have tried several times and it isnt working. i have tried ps1, psl because it isnt clear if it is 1 or l and i have tried both several times. even thr code solution isnt working and i am tired
Good day. Please i haven’t been able to move forward for 3 days. i am sure my code is correct but i keep getting the “X” i.e. it keeps saying my code is wrong. please this is getting really frustrating and tiring. i have made bug reports, but no one is responding. and i haven’t been able to move forward for 3 days.`
export ps1=">> "
This is the code I used in nano, afterwhich I used ctrl + O and then enter to save and then Ctrl + X to exit nano. after i press enter it keeps giving me the error message “did you set the ps1 environment profile in nano?” please help me. @discourse-admin @toastedpitabread @stetim94 @appylpye @mtf
Hi. Thanks for the reply. I have done that already. It didn’t work as well. its quite unfair that the moderators and no one from codecademy is replying the bug report.
Finally figured it out after 5 days lol. Apparently the ‘P’ and the ‘S’ had to be upper case. lol. Thank you so much for replying me @toastedpitabread.
Ugh SO FRUSTRATED! I’ve been doing this for two hours and I’m stuck, please please please help before I throw my computer out the window.
So I’m on step 2, I typed export PS1=">> "
Then I typed ctrl + O.
Now it’s asking me “File Name To Write”
Is that supposed to be there??? I’ve tried everything, there’s no reference to this in the instructions and no matter how many times I close, refresh, clear, restart the stupid page it keeps asking me this and I’m stuck and it’s such a waste of time and BAAAAAAAAH I’M SO FRUSTRATED PLEASE HELP!
Now, in your example, you’re probably dealing with some profile rc file like .bash_profile. (it’s probably indicated in the instructions).
Once you save the file with the correct name, then you type source ./.bash_profile (or whatever the file name is) to make your changes update in the shell.
Hi, I was stuck too but solved at the end, please try the following:
1- reset the exercise from Get unstuck.
2- do the first exercise and go to the bash_profile.
3- in the bash exercise copy this text (export PS1=">> ") from the lesson and past it in the bash_profle
4- Ctrl+O → enter → Ctrl + X → enter
it worked with me, just make sure to restart the whole exercise, hope it works
PS1 what does it mean? What is is used for?
I’m not sure if I’m fully understanding it. I might once I continue to the next page. But this says to use PS! to change the $ variable to >>. Is that the only thing PS1 does or can change? What IS it actually for, what does it mean, what all can it be used for?
Not sure I’m asking the question correctly.