Follow simple steps to install coreutils on Mac

Package Information:

Name: coreutils
Use: The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system.
URL: https://www.gnu.org/software/coreutils

Installation Steps:

  1. Open Terminal by hitting <command+space>. Type terminal and hit Enter key.
  2. Now, run
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install coreutils using brew
    brew install coreutils

coreutils is ready to use now!