N
N
nihi1ist2020-12-17 14:30:19
linux
nihi1ist, 2020-12-17 14:30:19

Why did command aliases from .bashrc stop working?

Added command aliases to .bashrc. After a reboot they stopped working. Tell me how to fix the situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Semenenko, 2020-12-17
@nihi1ist

Are the aliases themselves in place?
What does the following command output: Logged in under the same user for whom the aliases were registered?
$ grep alias ~/.bashrc

M
MrPurrPurr, 2020-12-17
@MrPurrPurr

Without configs, you can say that "something is broken."
Try moving the aliases to .bash_aliases
There should be a config in .bashrc (it usually is there):

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question