I noticed on a new Ubuntu 16.04 install that my root user's .bashrc differed slightly in behavior from a new user I had just created on the same box.
From what I can find, the root user's .bashrc
file comes from the base-files
package: http://packages.ubuntu.com/xenial/base-files
The /etc/skel files are provided by bash
according to Restore /etc/skel files
Are there reasons for the difference?
root
needed slightly different defaults that ordinary users. This does not mean that you cannot or should not modify the default~root/.bashrc
or~root/.profile
. – AlexP Feb 04 '17 at 00:24/etc/skel
version supports bash completion and doesn't exit immediately in non-interactive shells.Edit: Looks like they both also exit on non-interactive shells, they just do the detection slightly differently.
– l8nite Feb 04 '17 at 00:40