Solved

How to make permanent Alias in Linux?

Posted on 2009-05-13
4
1,393 Views
Last Modified: 2013-12-16
How to make permanent Alias in Linux?
0
Comment
Question by:aloknet21
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24381915
Hi,

Just add your alias commands in .bashrc file and they will be permanent and every time you log-on you'll get them back. But be careful I say .bashrc not .bash_rc ;-)

Cheers,
K.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24381924
Once you edit .bashrc you'll see the default aliases and a comment that reads " # user specific aliases and functions"

Cheers,
K
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24383861
add it to /etc/profile if you want it for all users or to .profile in user home dir
0
 
LVL 5

Accepted Solution

by:
0ren earned 250 total points
ID: 24405769
i think the right file for bash should be ~/.bash_profile.
/etc/profile is global for all users.
it will ~/.bash_profile if it exists
the syntax is :
alias l='ls -l'
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
capture pcap with filtered traffic 1 84
CentOS/RHEL 7 Linux maillog worldwide readable 2 89
how to configure linux OS using Ubuntu 7 58
Check for Linux process in script 7 48
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question