1

I can't access any of the programs I've written in the terminal window. My home directory is listed as /home/ubuntu/workspace/ and I'm not sure how to get back to my username's directory.

This problem started when I opened a new terminal window when starting pset 2.

1

Your username in the Terminal shell is ubuntu. This is true for everyone, regardless of what your Cloud 9 IDE username is.

Have you tried typing ls to list the contents of your home directory? It should return a list of folders, something like:

module1/
module2/
module3/
module4/
module5/
module6/
module7/
module8/
pset1/
pset2/
pset3/
pset4/
pset5/
pset6/
pset7/
pset8/

If you see a listing of folders like that, rejoice. You can use cd pset2 to get into the pset2 directory. Hopefully, all your files will be where you left them.

3
  • I can get into /home/ubuntu/workspace/pset2. However, when I enter make initials.c I get "make: Nothing to be done for `initials.c'." and when I type ./initials.c I get "bash: ./initials.c permission denied."
    – Laura
    Jul 28 '16 at 10:27
  • 1
    When you try to compile a program in CS50 IDE, you don't attach the .c file extension. For example, you should enter "make initials" to compile initials.c, then "./initials" to run it. It might help to consult the Week 1 notes here: cdn.cs50.net/2015/fall/lectures/1/w/notes1w/notes1w.html#c
    – Peter
    Jul 28 '16 at 16:04
  • 1
    Wow, ok that was the problem after all. Still don't know why /home/ubuntu/workspace appeared but as long as my program works, I'm happy. Thanks all!
    – Laura
    Jul 31 '16 at 19:46

You must log in to answer this question.

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