LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 09-23-2005, 04:06 PM   #1
crimsontide
Member
 
Registered: Aug 2003
Location: Omaha, Nebraska
Distribution: Red Hat, Fedora, Debian
Posts: 65

Rep: Reputation: 15
Alias will not stay


here

I have an alias that I like but I have to put it in each time I log into the system? How can I make it a more permenent.?

alias ll="ls -l --color"

Thanks!
 
Old 09-23-2005, 04:13 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
put it in your .bash_profile if you are using bash(the default shell)
 
Old 09-23-2005, 04:39 PM   #3
crimsontide
Member
 
Registered: Aug 2003
Location: Omaha, Nebraska
Distribution: Red Hat, Fedora, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
Worked great!

Thanks!

How would I accomplish this for root? Or more directly where is the .bash_profile for root stored?...

Last edited by crimsontide; 09-23-2005 at 04:41 PM.
 
Old 09-23-2005, 05:05 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
For all users you can use /etc/profile
# grep alias /etc/profile
alias ..="cd .."
alias which="type -path"
alias where="type -all"
alias ll="ls -l --color=auto"
alias l="ls -a --color=auto"
alias rm="rm -i"
alias mv="mv -i"
alias cp="cp -i"
alias la="ls -la --color=auto"
alias ls="ls --color=auto"
alias cod="COLUMNS=150 dpkg -l|grep"
 
Old 09-23-2005, 11:54 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally posted by crimsontide
Worked great!

Thanks!

How would I accomplish this for root? Or more directly where is the .bash_profile for root stored?...
Uncomment the line for it in the /root/.bashrc you may want to do the same for the /user_name/.bashrc as well and remove yours for the /user_name/.bash_profile.
 
  


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
Is linux here to stay? ashwin_cse General 13 10-07-2004 10:50 PM
The mounts don't stay! ch4s3r Linux - Software 25 05-21-2004 10:07 AM
Should I stay, or should I go? /home/kyle General 23 03-14-2004 02:36 PM
X won't stay up tlw1linux Mandriva 19 10-07-2003 04:50 PM


All times are GMT -5. The time now is 11:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration