4. Aliases I


#1



https://www.codecademy.com/courses/learn-the-command-line/lessons/environment/exercises/aliases-i?action=lesson_resume#


I assume that I'm having trouble saving the the file everything else seems to be right, I have already pressed entered 8 times, I don't see the problem.


#2

Same for me :-/

Have reset the lesson and done it again, refreshed, tried different browsers and computers but no fix...


#3

@tomfbush i just now finished 4/11 and it took me a while to complete it but i found out where i was going wrong.....so here's what i learned
1. to add the alias type
nano ~/.bash_profile
2 then on the next screen type
alias hy="history"
3 control o
4 enter
5 control x
6 clear
7 source ~/.bash_profile
8 ~/.bash_profile

if you havent already your alias pw="pwd" to
nano ~/.bash_profile
you might wand to add that alias first


#4

@teraclenin thanks for this, it helped me to finish the lesson.

In practical terms I did almost the same, except I think my initial nano command was nano .bash_profile -- I didn't refer to the home directory. Just assumed that's where I was. Can't see any other differences!

Thanks again :smiley:

Edit: a quick pwd confirms I was totally wrong to assume I was in ~!


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.