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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.