Hello,
for those using the book "Learn Python the Hard Way" I have found an error in the book.
Page 253 - Exercise 5 - Command Line Crash Course
Line 30 reads
cd ../../ ..
It needs to read
cd ../ ../ ../
I had tried the exercise 3 or 4 times and got an error in the terminal each time, eventually I cd back to home and began further on in the exercise, and where the cd ../ is used later to move up 7 levels with no error, after completing the exercise I then tried the line 30 adding the final / like is in the later part of the exercise, this command then didn't give an error.
I redone the entire exercise with that added to line 30 and there were no errors produced in the terminal.
So I think he has made a mistake, that you will need to add in the book a / to the end of line 30 to complete the exercise.
I am using the Third Edition.
If you found any errors when using the book, or find any errors as you work through the book please can you also add them in the thread to help each other.
for those using the book "Learn Python the Hard Way" I have found an error in the book.
Page 253 - Exercise 5 - Command Line Crash Course
Line 30 reads
cd ../../ ..
It needs to read
cd ../ ../ ../
I had tried the exercise 3 or 4 times and got an error in the terminal each time, eventually I cd back to home and began further on in the exercise, and where the cd ../ is used later to move up 7 levels with no error, after completing the exercise I then tried the line 30 adding the final / like is in the later part of the exercise, this command then didn't give an error.
I redone the entire exercise with that added to line 30 and there were no errors produced in the terminal.
So I think he has made a mistake, that you will need to add in the book a / to the end of line 30 to complete the exercise.
I am using the Third Edition.
If you found any errors when using the book, or find any errors as you work through the book please can you also add them in the thread to help each other.