I'm a CentOS user. In my machine, some aliases are available, they were previously defined in the past. I want to add new aliases to function as shortcuts to frequently used commands.
I don't know where to define them, since I'd like them to be in the same file as the already defined aliases. I've searched files like bashrc, /.rc, but it wasn't there.
I've checked the already defined aliases are available to all users, not just mine.
~/.bashrc
~/.bash_profile
/etc/bashrc
/etc/profile
still could not find it. – Jairo Alves Nov 13 '18 at 13:09bash
. Did you try those? – JigglyNaga Nov 13 '18 at 13:12grep -r '^alias COMMAND' /etc
but it does not find it. I can't try theunalias COMMAND
part, because if it erase the current aliases I could not restore to the current state, and that would be even worse. I'll check the other answers as well. – Jairo Alves Nov 13 '18 at 13:15