Thread:Taldin/@comment-24150802-20141010195905/@comment-24150802-20141023094040

So, that thing with the "ls /vagrant" command a few hours ago in github:

On Unix/Linux, there aren't drives like C: or D:, instead all directories are under one root directory indicated by "/", so if you do "cd /" you are moving to the top-level directory. If you do "ls /vagrant" you are listing files in the vagrant subdirectory that's directly under the top-level directory.

Also in Unix/Linux, there are user accounts (e.g., a user called "john") and each user has their own home directory, which is almost always a subdirectory under "/home". So, "/home/john" is john's personal home directory. The symbol ~ (tilde) is a shortcut to your own home directory, so if john types "cd ~" he'll change directory to /home/john.

The prompt in Unix/Linux usually indicates your current working directory (or at least a part of it when it's long). So if you're in the "/stuff/red" directory, your prompt might be "boxname:/stuff/red $" (where boxname is the name of the server or computer you are on). When you're in your own home directory, your prompt is often displayed as "boxname:~ $" (using tilde as shorthand for /home/[your username]) - you'll notice the ~ in the prompt in some of your screenshots.

In the habitrpg vagrant virtual machine, there's a user account called "vagrant". Thus there's a directory called /home/vagrant that is the home directory for that user account (when you were in that directory, the screenshots had ~ in the prompt). That home directory isn't actually used at all for habitrpg stuff, so you can ignore it (or store notes or whatever in it). There is also a directory called /vagrant which is very different than /home/vagrant (confusingly, I admit). /vagrant is where your local copy of the habitrpg repository is, and where you do the majority of the npm and grunt commands.

That explains why you were getting different results for your "ls" commands. Some "ls" commands were being executed under /home or /home/vagrant, while "ls /vagrant" referred to a different directory (a non-existent one if I recall correctly).

The "vagrant up" command should set up the /vagrant directory and also set up something so that whenever you do "vagrant ssh" you are automatically put into the /vagrant directory.