Linux – Where’s .bashrc for root

bashrclinuxroot

I know it's not best practice, but on my dev system I login as root. What's the equivalent of the .bashrc file so I can alias some functions?

I've found the /etc/bash.bashrc & /etc/bash.bashrc.local but I'm not sure where to plop my commands.

Running x86_64 SUSE.

thanks, mjb.

Best Answer

Probably best to put them in ~/.bashrc . It seems root doesn't get the normal ones by default in some distros, but you just cp /etc/skel/.bash* ~ to fix that.

Related Question