0

can't find out how to move around among my directories.

I think I'm in the wrong directory. I keep getting: make: *** No rule to make target `hello-1'. Stop.

2 Answers 2

2

There are many commands you can use in the terminal, but the ones you are looking for are "ls" and "cd"

ls will print out a list of all the available directories in that folder cd will allow you to change your directory

for example you could type "cd pset1" to change your directory to pset1

Please upvote my answer if you liked it :)

2
  • " ls " gives me this output : ~/workspace $ ls CS50/ and " cd pset1 " gives me this : ~/workspace $ cd pset1 bash: cd: pset1: No such file or directory
    – depth-code
    Commented Jun 29, 2016 at 21:07
  • This helped a lot. Thanks.
    – depth-code
    Commented Jun 29, 2016 at 22:29
0

cd - change directory, i.e if you are inside ~/workspace/ and you want to go in mario/less you have to type: cd ~/workspace/pset1/mario/less And then if you want to go back, to mario folder, you cant just type cd /mario, becasue there is no mario folder inside the folder "less", instead you`ll have to type full path again: cd ~/workspace/pset1/mario OR press the UP arrow button in the terminal to get to your last input and correct it accordingly.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .