The alias built-in in shells, used to define shortcuts for frequently used commands.
5
votes
2answers
142 views
Mailman / Postfix Configuration Assistance
I am writing for some help regarding Postfix configuration.
I cannot seem to get Postfix configured properly to transfer mail to the mailing list installed on the same server. I followed many steps ...
2
votes
1answer
215 views
tcsh alias - find FreeBSD port
I am trying to create an alias for tcsh. I would like to find a program in ports (FreeBSD ports).
So far I made an alias, which works, but finds only ports which end in *port_name. I would like it to ...
2
votes
0answers
247 views
How to enable `sudo` with custom functions?
Recently I learned you can enable sudo for custom aliases as follows:
alias sudo='sudo ' # note: the space is required!
The reason this works is the following:
If the last character of the ...
1
vote
0answers
337 views
Dynamic search and replace in Ksh
Machines at work follow a constant naming pattern:
host[domain]_[id]
where [domain] is either "d" for dev machines and "p" for production machines, and [id] is a 2-digit string that is different for ...