-
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
ALLEN BRADLEY 1494V-DS400 SER A DISCONNECT SWITCH 3PH 400AMP 600VAC STK 5039
$1220.00
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$619.99
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1
$39.99
Intel Core i7-6700 3.40 GHz QUAD Core (4 Core) Desktop Processor 8MB LGA 1151
$59.99
Intel Core i5-8500 3 GHz 8 GT/s LGA 1151 Desktop CPU Processor SR3XE
$49.99
Intel Xeon E5-2697 v2 2.7GHz 30M 12-Core LGA2011 CPU Processor SR19H
$27.99
AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$98.99
Intel Core i5-12400 Desktop Processor With HeatSink
$140.00
Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor
$48.79