Is it possible to create a default .profile or .bash_profile with default configuration intact on macOS? In Ubuntu, I can get the default .bashrc by copying from the /etc/skel folder:

cp /etc/skel/.bashrc ~/


This is extremely helpful for me as it gives me all the options and configuration already setup and properly commented.

Is there a similar feature for macOS (currently using macOS Sierra)?
On user creation, the home directory contents are copied from a directory /System/Library/User\ Template/&lt;language&gt; (where language is for example English.lproj), so you could copy the original file using:

sudo cp /System/Library/User\ Template/&lt;language&gt;/&lt;file&gt; ~/


The problem is that .bashrc is non-existent in the default profile, so you can just delete it from your home directory to get the initial state.

Though you might check your installation to be 100% sure.