Understanding the Unix file system and ruby installs without Sudo

Posted by JZ on Stack Overflow See other posts from Stack Overflow or by JZ
Published on 2010-03-11T04:24:04Z Indexed on 2010/03/11 4:39 UTC
Read the original article Hit count: 318

Filed under:
|
|

I'm trying to comprehend the Unix file system on my OSX. I'm following wikipedia Filesystem Hierarchy Standard.

I understand when I install ruby gems I must use the command sudo gem install but if I omit sudo, problems may occur.

  1. Where are gems installed within the file system when I omit sudo?
  2. How can I delete these gems?
  3. A Fun side question: When I enter cd ~/.gem my terminal is directed to .gem user$, When I enter cd ~/ and list folders using the ls command I can't find a .gem folder. Where is the .gem folder? How does this fit into the Filesystem?

© Stack Overflow or respective owner

Related posts about unix

Related posts about osx