Unremovable aliases

Installed AlmaLinux on server machine. Running OK, but there are some unremovable aliases. Removed traces from homedir, /etc/profile.d. than source .bashrc and? Guess what? Aliases are still shown as output of alias command!

Anyone?

Officially:

/etc/profile.d/*
~/.bashrc.d/*

Of course sometimes people modify the files:

/etc/profile
/etc/bashrc
~/.bashrc
~/.bash_profile

If that doesn’t sort things out, try:

# cd /etc
# grep -s alias * */*

and

$ cd ~
$ grep -s alias * .??* */*
1 Like

It could help if you would show that output.

1 Like

@MartinR Thanks a milion man. Marked as solution.