When you try to use sudo with brew packages you get a file not found error. workaround $sudo /var/home/linuxbrew/.linuxbrew/bin/l2ping