Creating a new folder in root of MacOS
Root folder of MacOS is readonly, to create a folder you can follow the below steps
1. Create /etc/synthetic.conf
file
sudo vi /etc/synthetic.conf
2. Create the folder entry by adding the following content
<folder name> System/Volumes/Data/path/to/your/folder
example:
newfolder System/Volumes/Data/Users/exampleuser/newfolder
Note: Keep a tab space
between the folder name & the path