… don’t confuse with reboot 😉

alias beroot="sudo su -l root -c \"$(which bash) --rcfile $HOME/.bashrc\""

I like to feel home in my environment, even when I assume root rights. Since not everyone likes my .bashrc file in scenarios where the root account is shared, I have the above alias inside my .bashrc, so that whenever I type beroot it will have the same effect as sudo su - for most practical purposes, but still use my own .bashrc.

Side-note: if you tend to make typos like most of us, you’ll appreciate the helpful intervention from molly-guard (at least on Linuxes) 😉

// Oliver

This entry was posted in EN, Linux, Unix and unixoid. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *