FAQ: Environment - Bash Profile

This community-built FAQ covers the “Bash Profile” exercise from the lesson “Environment”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn the Command Line

FAQs on the exercise Bash Profile

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 (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 (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 (like) to up-vote the contribution!

Need broader help or resources? Head to #get-help and #community:tips-and-resources. If you are wanting feedback or inspiration for a project, check out #project.

Looking for motivation to keep learning? Join our wider discussions in #community

Learn more about how to use this guide.

Found a bug? Report it online, or post in #community:Codecademy-Bug-Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Hello. I’m stuck on the “Bash Profile” exercise. I was able to get past step 1 but I’m not able to get past step 2. What should I do differently? The message at the bottom keeps saying, “Did you use to create a greeting in the bash profile that begins with ?”

Same here, but I first wrote plain echo Mamma. Then I changed that to be echo “Mamma” which worked.
I tried on my computer, but this does not recognise nano at all.

Same here; i started out by moving back and forth between by computers’ gitbash and codeacademy - big mistake, i ended up with a 3 line welcome on my nano!
2nd, try not to overthink it. just type the exact steps (.ctr + o…). There needs to be much more explanation of what’s happening for this nano tool!

I had the same issue and as the error message was not clear it took me a while to figure it out! The issue for me was that when i opened nano is was typing nano ~/ .bash_profile but this did not open the correct file. It worked when i didn’t use a space between / and . (nano ~/.bash_profile)

Did you passed in the exercise of Bash Profile.?
I was getting some errors while submitting the step-2 of the BashProfile Exercise! :pensive: Please help me with this

Welcome to the forums!

What errors are you getting?

Greetings everyone. I just solved the problem for step number two. On step one you have to type
$ nano ~/.bash_profile. But on step two you have to write the same thing but everything has to be together. Don`t leave any spaces in between.

Hi Admin/Forum peers,

I ran into the same issue with task 3, step 2 - following the instructions exactly step by step would always prompt this error "Did you use to create a greeting in the bash profile that begins with ?"

Please kindly advise what to do as I really need to finish this command line stuff to brush up on it and get prepared for a job interview. Very frustrating at the moment as I have literally tried any other way and researched on google and none could solve this issue, which is apparently a bug. Thanks in advance.

have you typed string starting with echo ?