I think because I’ve already previously completed this project, all the commands that I had typed are still in my ~/.bash_profile. It’s so messy in there! How do I clean it up and reset (? is that the right word) so that I can review and redo Tasks 18 - 26?
Not sure if my following problem is related to the original question above. But I went into my bash profile terminal and manually pressed my “delete” key to clear the terminal. Then I went ahead and did the Ctrl + O → Enter → Ctrl + X → source ~/.bash_profile … and I proceeded with Tasks 18-21. But I don’t think whatever I did with the “deleting” worked. Because when I did Task 22, I got the following message …
/Users/myname/.bash_profile:4: bad assignment
md=mkdir
I then went back into my bash terminal and did it all again, this time cutting and pasting from the Solution for Task 20. But I still received the same “bad assignment” message.
Someone please help? This is all so jargony to me.
Hi Lisalisaj. Not Windows. I am learning coding on my 2021 MacBook Air which I checked just now and am being prompted to update the software to macOS Ventura.
Whoops, my bad. Also, I didn’t know there was a new Mac OS available.
I’m assuming that you used nano to edit the file in the lesson, right?
This might help: nano .bash_profile
make changes/revert back to what it was before you added the stuff from that lesson. Then save & exit: ctrl + x'
You’ll be prompted if you want to save the changes.