为什么 suse 没有 root 用户的 .bash_profile 或 .bashrc

Sud*_*lly 2 suse

我想在我的 Suse 设置上为 root 用户设置一些 ALIAS 命令。我在 /root 中找不到 root 用户的 .bashrc 文件。

我可以为此使用 /etc/profile 吗?

mta*_*tak 5

您只需创建一个 .bashrc 文件,其中包含所需的别名/root/.bashrc。如果 Bash 找到它,就会使用它。