Slackware This Forum is for the discussion of Slackware 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. |
|
 |
11-27-2003, 12:52 AM
|
#1
|
|
Member
Registered: Nov 2003
Posts: 42
Rep:
|
Where Linux sets its own alias's
Okay, kinda dumb question, I'm using Slack 9.1...where is the default alias's stored at? I would like to make my own and store them for when the system boots up I don't have to type them all the time. I just don't know where they are supposed to to saved at...perhaps /etc/profile??
|
|
|
|
11-27-2003, 01:02 AM
|
#2
|
|
LQ Newbie
Registered: Nov 2003
Location: Socal
Distribution: Slackware, RedHat
Posts: 13
Rep:
|
Since all the scripts in /etc/profile.d are executed during login, I just added an "alias.sh" and put all the custom aliases in there.
|
|
|
|
11-27-2003, 01:02 AM
|
#3
|
|
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307
Rep:
|
For user-specific aliases, you can store it in ~/.bashrc
|
|
|
|
11-27-2003, 01:42 AM
|
#4
|
|
Member
Registered: Nov 2003
Posts: 42
Original Poster
Rep:
|
my regular user (not root) doesn't have a .bashrc file in the home directory. Do I need to create one? Does it get exec when that user loggs in? Also, I was wondering what scrip it was that loads the quotes everytime I login. How do I get rid of them from showing up? THank you so much for your time.
|
|
|
|
11-27-2003, 09:12 AM
|
#5
|
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Quote:
Originally posted by Nappa
my regular user (not root) doesn't have a .bashrc file in the home directory. Do I need to create one? Does it get exec when that user loggs in? Also, I was wondering what scrip it was that loads the quotes everytime I login. How do I get rid of them from showing up? THank you so much for your time.
|
You also posted this as a thread.  I gave a shot at answering on it.
|
|
|
|
11-27-2003, 12:03 PM
|
#6
|
|
LQ Newbie
Registered: Jul 2003
Location: Atlanta GA
Distribution: Slackware 9.0
Posts: 6
Rep:
|
To get rid of the quotes all you have to do is open /etc/profile.d/bsd-games-login-fortune.csh and /etc/profile.d/bsd-games-login-fortune.sh then comment out all the lines.
Hope this helps
|
|
|
|
11-27-2003, 07:14 PM
|
#7
|
|
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307
Rep:
|
Quote:
Originally posted by Nappa
my regular user (not root) doesn't have a .bashrc file in the home directory. Do I need to create one?
|
If you need your own custom aliases, then most likely yes.
Quote:
Originally posted by Nappa
Does it get exec when that user loggs in?
|
Yes.
Quote:
Originally posted by Nappa
Also, I was wondering what scrip it was that loads the quotes everytime I login. How do I get rid of them from showing up? THank you so much for your time.
|
As mentioned by someone before me, it's called fortune. Use pkgtool to remove it 
|
|
|
|
11-28-2003, 09:30 AM
|
#8
|
|
Member
Registered: Mar 2003
Location: Connecticut
Distribution: Slackware, OpenBSD
Posts: 60
Rep:
|
Re: Where Linux sets its own alias's
Quote:
Originally posted by Nappa
Okay, kinda dumb question, I'm using Slack 9.1...where is the default alias's stored at? I would like to make my own and store them for when the system boots up I don't have to type them all the time. I just don't know where they are supposed to to saved at...perhaps /etc/profile??
|
It also depends on what shell you use. I use tcsh and put my own custom aliases in
~/.cshrc
|
|
|
|
| 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 08:19 PM.
|
|
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
|
|