Why suse doesn't have .bash_profile or .bashrc for root user

1

I want to set few ALIAS commands on my Suse setup for root user. I cant find .bashrc file for root user in /root.

Can i use /etc/profile for this.

Sudheer Chigullapally

Posted 2014-04-07T07:26:56.297

Reputation: 53

Answers

3

You can just create a .bashrc file with the required aliases in /root/.bashrc. Bash will use this if it finds it.

mtak

Posted 2014-04-07T07:26:56.297

Reputation: 11 805

Creating .bashrc is helpful do you know the purpose of /etc/profile can i change it for aliasing. – Sudheer Chigullapally – 2014-04-08T04:35:27.517

-1

To help, you can create an archieve named bash.bashrc.local on /etc. The system will load any instruction found on this file, and then search for the default conf and execute both.

/etc/bash.bashrc.local

Leonardo Benevides

Posted 2014-04-07T07:26:56.297

Reputation: 17