What is /home directory in Mac OS used for?

I am new to Mac OS. Before I usually used Linux, and /home/your_account directory is used to store personal files, which in Mac, I found, are stored in /Users/your_account. /home is empty and it is a root directory. Thus, I am wondering about the function of this directory. Could anyone give some advice or tips? Thanks.


Simply put, the /home directory is used for nothing on macOS.

While it's typically the location for user homes in Linux and Unix, macOS uses /Users instead. If you want to write portable programs, simply use $HOME or ~ to refer to the home directory.