LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-27-2003, 12:52 AM   #1
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Rep: Reputation: 15
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??
 
Old 11-27-2003, 01:02 AM   #2
miyake
LQ Newbie
 
Registered: Nov 2003
Location: Socal
Distribution: Slackware, RedHat
Posts: 13

Rep: Reputation: 0
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.
 
Old 11-27-2003, 01:02 AM   #3
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
For user-specific aliases, you can store it in ~/.bashrc
 
Old 11-27-2003, 01:42 AM   #4
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 11-27-2003, 09:12 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 11-27-2003, 12:03 PM   #6
wlanwizkid
LQ Newbie
 
Registered: Jul 2003
Location: Atlanta GA
Distribution: Slackware 9.0
Posts: 6

Rep: Reputation: 0
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
 
Old 11-27-2003, 07:14 PM   #7
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
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
 
Old 11-28-2003, 09:30 AM   #8
Angelo
Member
 
Registered: Mar 2003
Location: Connecticut
Distribution: Slackware, OpenBSD
Posts: 60

Rep: Reputation: 15
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
icon sets slim27616 Mandriva 0 08-11-2004 06:03 PM
bash env vars alias's & .bashrc micxz Linux - General 8 10-08-2003 02:09 PM
Not all nic alias's loading! jamiemcparland Linux - Networking 3 10-04-2003 02:48 AM
Mandrake Sets Hostname Before Getting IP? mac_phil Mandriva 1 09-30-2003 09:41 AM
character sets in Linux, MySql, PHP, Apache prague_expat Linux - General 1 09-21-2003 05:33 PM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
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