By far the best way to install Linux on a Mac is to use virtualisation software, such as VirtualBox or Parallels Desktop. Because Linux is capable of running on old hardware, it’s usually perfectly fine running inside OS X in a virtual environment.
Is Mac good for learning Linux?
If you want to learn UNIX for support job opportunities then Linux would be a better choice, if you looking at becoming a programmer using UNIX libraries then Mac would work fine. Yes. OS X is based on BSD, a flavor of Unix. You can run a bash shell (via the Terminal) or any other shell you like.
Can I learn Linux commands on Mac?
No, there is no such thing as “Linux Commands” so there is nothing to practice. If you actually mean UNIX, then yes, you can practice using UNIX on macOS. In fact, macOS is a certified UNIX (according to The Open Group, which is the international standards body for all UNIX).