Why aliases are not working in GNOME Terminal after setting in `.bash_profile`

Solution Verified - Updated -

Issue

  • After setting up the aliases in .bash_profile file, they are not showing up in gnome 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 aliases are working in text 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content