Why aliases are not working in GNOME Terminal after setting in `.bash_profile`
Issue
- After setting up the
aliasesin.bash_profilefile, they are not showing up ingnome terminal.
[root@example ~]# who am i
root pts/0 2013-12-06 21:51 (:0.0)
[root@example ~]# grep alias1 .bash_profile
alias alias1='ls -a'
[root@example ~]# alias1
-bash: alias1: command not found
[root@example ~]#
- However, the
aliasesare working intext consoles.
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.