I'm running FreeBSD 9.1-RELEASE. I've installed GNU grep with
However the "default" grep for users is still FreeBSD grep.
# /usr/local/bin/grep -V /usr/local/bin/grep (GNU grep) 2.12 # grep -V grep (GNU grep) 2.5.1-FreeBSD
I want to make GNU grep the default. I understand that the problem is with the order of directories specified in my
PATH environment variable:
# echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
However, I fear to move the
/usr/local/bin entry to the beginning of my
PATH. Is it safe?
In Linux distros like Debian such tasks are usually accomplished via
What is the best way to do what I want in FreeBSD and not break system upgrades and such?