-
Junior Member
registered user
what file do you use to create aliases ?
What file do you use to create aliases. I tried .bashrc and it did not work !
-
Senior Member
registered user
.bashrc?
try .bash_profile in the users home dir for "personal" customization, and /etc/profile for systemwide stuff, .bashrc is mainly used for non login shells.
to read some more try http://floppix.com/bashcfg.html for a few pointers.
and toget more than you want try "man bash"
keep asking.
oh, just one thing more, man bash gives this as the "files" used.
FILES
/bin/bash
The bash executable
/etc/profile
The systemwide initialization file, executed for login shells
~/.bash_profile
The personal initialization file, executed for login shells
~/.bashrc
The individual per-interactive-shell startup file
~/.bash_logout
The individual login shell cleanup file, executed when a login shell exits
~/.inputrc
Individual readline initialization file
a good tip is to hit / to get a line at bottom of manpage where you can type word to search for (and usually q exits them, or if that fails ctrl+c)
-
Where do you need aliases?
If you need mail aliases, you need to check your MTA requirements. Smail will use /usr/lib/aliases in the form of
alias: mark, marko, mjk
Look it up for further info.
sendmail uses a similar file and format, but is usually in the /etc directory. (It could reside somewhere else depending on your configuration.)
Your configuration files for qmail and mailhandler all contain a place for you to define aliases so that if johnc@domain.com and John.Cool@domain.com and JohnBCool@domain.com ar all the same person, mail gets directed tot he correct mailbox.
I'm not familiar with all the MTA's out there, so you may need to do more research.
Similar Threads
-
By faz in forum MS Windows & New to Linux
Replies: 1
Last Post: 09-30-2004, 05:29 PM
-
By rodragon in forum Customising & Remastering
Replies: 1
Last Post: 04-14-2004, 03:55 AM
-
By bongski55 in forum Customising & Remastering
Replies: 5
Last Post: 11-07-2003, 12:55 AM
-
By Blue in forum Customising & Remastering
Replies: 1
Last Post: 10-02-2003, 05:55 AM
-
By JoDaY in forum Customising & Remastering
Replies: 0
Last Post: 09-23-2003, 10:17 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$297.00
HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES
$299.99
HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES
$199.99
HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*
$94.99
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon
$846.19
HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES
$199.99
Supermicro 5018A-FTN4 Rack Server - Black
$125.00
SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD
$90.00
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00