Guest User

Untitled

a guest
May 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. >> `ls -l "/usr/local/etc/git-completion.bash"`
  2. => "-rwxrwxr-x 1 root admin 44883 11 Oct 2009 /usr/local/etc/git-completion.bash\n"
  3.  
  4. >> `whoami`
  5. => "ben\n"
  6. >> `groups ben`.split(' ').include? 'admin'
  7. => true
  8.  
  9. >> File.writable? "/usr/local/etc/git-completion.bash"
  10. => false
  11. >> File.writable_real? "/usr/local/etc/git-completion.bash"
  12. => true
  13.  
  14. >> File.open("/usr/local/etc/git-completion.bash", "a") { puts "opened for writing OK" }
  15. opened for writing OK
  16. => nil
  17.  
  18.  
  19. >> `uname -a`
  20. => "Darwin hat.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386\n"
Add Comment
Please, Sign In to add comment