I just installed Ubuntu on my personal machine. I've never used Linux before. I installed Ruby, and Ruby on Rails. I'm about to start a new project. Where should I save it?

I tried cd /var then mkdir www and got a permission denied error. So I did sudo mkdir www. But now I am afraid that every time I want to save or create something, whether using Rails console or my text editor, I'm going to get permission errors.

2 Answers
2

Thanks! But what if I decide to install Apache and start developing in say, PHP. Should my files be in /var/www/ then?
–
MohamadJan 26 '12 at 21:59

Why so? I keep all my work in my home folder. If You want to be an admin, or have a permission to write files in some other place You need to configure users and groups and what they can do with those files.
–
MiseryJan 26 '12 at 22:14