LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2010, 09:34 AM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 33
How to set permanent alias


Hi friends,

I want to set permanent alias for ls -lX and ls -la

I use

alias lx="ls -lX" and
alias la="ls -la"

The problem is when I su to root and get back to the user I use, the alias become unset or it is cleared. I want to make it permanent or even add it to some profile file maybe if any, to use it always when become a user. This is very useful when working with console.
 
Old 01-23-2010, 10:03 AM   #2
AleLinuxBSD
Member
 
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 272

Rep: Reputation: 38
Getting Started with BASH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Make An Alias Permanent sanchetanparmar Linux - Newbie 4 11-05-2009 07:51 AM
permanent alias Haloony Linux - Newbie 2 03-09-2006 10:12 PM
Permanent Alias In Slackware dmcbeing Linux - Software 2 11-10-2005 11:18 AM
permanent module options: where to set? mehlkelm Debian 2 09-20-2005 02:18 AM
how to set permanent routes? pioniere Linux - Networking 3 10-24-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration