Bashrc's alias issue

/etc/bashrc is the system-wide bashrc.

You don’t want to edit it. If you’ve mangled it and don’t know what to undo, please say what version of Fedora you’re on (36, 37, or 38) and I’ll point you to the original.

~/.bashrc is your user bashrc.

Feel free to edit it; add your aliases directly, or source ~/.bash_aliases here. If you’ve mangled it, you can copy the template from /etc/skel/.bashrc to ~/.bashrc

There should be no need to chmod files in your home dir, so I’m not sure where you created your .bash_aliases file. If you created /etc/.bash_aliases, you’ll want to remove it.

FYI, ~ refers to your home directory, i.e. /home/$USER (where $USER is your username).

4 Likes