Bash: Change ownership of file or directory
# you can change ownership of a file or directory
# by using the `chown` command with your user and
# group information like this
$ sudo chown -R USER:GROUP ~/.gem
# if you don't know your user or group, you can use
# the `id` command and look for the info in
# parentheses next to uid & gid
$ id
uid=501(rymo) gid=20(staff) groups=20(staff)