I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united.
How could I replace all my mac utilities with GNU utilities?
|
This adds symlinks for GNU utilities with g prefix to
See
You can install GNU
|
|||||||||||||||||||||
|
|
Besides
The Reference: http://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ |
|||||||||||||||||||||
|
|
I'm not sure that I would recommend replacing them; however, you can install them to a different path and utilize them that way. Overall, if you are coming from Linux and would like access to more "generic" *nix utilities, and a system similar to apt, then I would recommend looking into Macports: http://www.macports.org It allows, for example, using the latest "generic" GCC, as opposed to/in addition to Apple's included GCC, just as an example. |
|||||||||||||||||
|
|
I've written a script to do exactly this! The script can be viewed here (or below). However, I can't always guarantee this post will reflect the latest version of the script linked previously. Upon running the script, Homebrew will be installed (if not already), all the associated GNU utilities will be installed (if not already), and the
|
|||||||||||||||||
|
homebrewas mentioned below, and then just learning to use the utilities with ag(gsed,greadlink, etc ) instead of replacing the system utilities. – cwd Mar 29 '15 at 13:51--with-default-namesis only affects the local user. It could be an issue with mac oriented terminal utilities, but if you use homebrew for everything, you might aswell pretend you're using linux. Mixed with iterm2, it's working great for me, I can basically pretend I'm home with my linux boxes. – Ray Foss Jun 30 at 17:39