-
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 [email protected] and [email protected] and [email protected] 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

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter
$27.50

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$484.99

Dell PowerEdge R730 8 Bay Server 64Gb 1x80Gb SSD 3x900Gb SAS 2x12c v4CPU Proxmox
$620.00

8W81F Dell PowerEdge R840 24x SFF 4x Xeon Gold 6252 H730P 2x 1100W PSU
$1000.00

DELL POWEREDGE R340 Server | Xeon E-2126G 64GB RAM PERC H330 (Onboard)
$399.95

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server
$349.99