Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Install Python in macOS

There are a few ways to install Python in Mac.

  1. Install system-wide via the official Python installation package.

  2. Install a Anaconda Python distribution locally.

  3. Install locally using Homebrew (recommended).

A few comments about different ways of installation.

  1. Avoid installing multiple versions of Python in your system. It usually brings more …

Change Shell in Mac

You can check the current shell in use by running the following command.

echo $SHELL

However, notice that echo $SHELL does not report the right shell sometimes. A more robust way is to use echo $0.

The default shell can be changed using thee comamnd chsh. For example, thee following …

Install GNU Utils Using Homebrew

Installing GNU tools is a way to try to get Linux command experience in macOS. However, not every Linux command has an identical-experience version in macOS. ** It is suggested that you use a Linux virtual machine if you really want to have Linux experience in macOS. ** Notice that some hardwares …

Best Filesystem Format for Cross-platform Data Exchanging

FAT32

FAT32 is an outdated filesystem. The maximum size for a single file is 4G. You should instead exFAT instead of FAT32 where possible.

exFAT

exFAT is great cross-platform filesystem that is support out-of-box by Windows, Linux and macOS. There is practically no limit (big enough for average users) on …

Mount NTFS Drive Manually on Mac

  1. First use diskutil list to list all avaiable disks and identifiy the external hard drive to mount. For example, running diskutil list on my Mac gives me the following output and /dev/disk2s1 is the partition (NTFS) to mount.

    $ diskutil list
    /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme …