Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-23-2005, 03:06 PM
|
#1
|
|
Member
Registered: Aug 2003
Location: Omaha, Nebraska
Distribution: Red Hat, Fedora, Debian
Posts: 65
Rep:
|
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!
|
|
|
|
09-23-2005, 03:13 PM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
|
put it in your .bash_profile if you are using bash(the default shell)
|
|
|
|
09-23-2005, 03:39 PM
|
#3
|
|
Member
Registered: Aug 2003
Location: Omaha, Nebraska
Distribution: Red Hat, Fedora, Debian
Posts: 65
Original Poster
Rep:
|
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 03:41 PM.
|
|
|
|
09-23-2005, 04:05 PM
|
#4
|
|
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107
Rep:
|
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"
|
|
|
|
09-23-2005, 10:54 PM
|
#5
|
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|