Background: Many of the company’s logs are printed in the /data directory. After I changed to my own computer and upgraded to the big SUR project, I found that I could not create the corresponding folder already xxx.log file. I was not familiar with MAC OS, so I started to search…..

There are many ways to do this online, mostly going into recovery mode, turning off THE SIP, and setting up a soft connection, but there are also ways to restart and fail

Later, I saw uncle Su nan’s post, like his practice recommended

The essence of the method is: under the root directory, a soft link directory data appears, and then the real directory address is: /Users/ Allen /data/.

Set up the real directory (in an appropriate location, for example: /Users/ Allen /data). Then, edit the /etc/synthetic. Conf file. (If not, it doesn’t matter, VI will create one automatically.)

sudo vi /etc/synthetic.conf
Copy the code

Then write the desired soft connection correspondence inside, for example:

data    /Users/allen/data
Copy the code

Here in particular ⚠ is noted:

Author: Uncle Su nan, source: newsn.net/say/mac-big…