Questions tagged [alias]

In computer sciences, an alias is a name which usually designates an already-named reference.

Aliases are names used to designate objects, items and settings which already possess a name. In *nix systems, they usually serve as :

  • Hostnames ; a machine possesses a unique hostname, which can be surrounded by aliases. On a Linux system, you can find your hostname by typing hostname, whereas the /etc/hosts file might contain other aliases for the IP representation of your machine on its network interfaces.

  • Users ; on *nix systems, each user has a given name, registered in the /etc/passwd file. However, for some other purposes such as email processing, it might be useful to create aliases for users. This can be done in the /etc/aliases file. (e.g. root is usually aliased as the postmaster).

  • Shell commands ; on *nix systems, it is possible to set an alias referencing a command/program (with possible options and arguments). The most common one is probably ll, which designates ls -l (long list). An alias can be created using the alias (man page) command, and destroyed thanks to the unalias bash utility (man page).

One could also consider UNIX links as an implementation of aliases for files (in the UNIX meaning). See ln for more information (man page).

Each application handles its aliases as it wishes to. Some don't even implement this possibility, and expect the administrator to use the real resources names. Please refer to the applications' documentation for more information on specific cases.

332 questions
2
votes
2 answers

Windows Cluster IP/Hostname doesn't respond to UNC requests, yet ping and RDP work

I have a Windows Server 2003 cluster of 2 nodes in an active-passive configuration. I can ping both nodes, rdp and access their unc shares. I also have an alias, which directs to a cluster IP set in one of the cluster groups for SQL. (I'm not the…
stead1984
  • 577
  • 8
  • 16
  • 32
2
votes
1 answer

Sender Restrictions to Aliases/Address in Postfix

We're running Postfix 2.3.3 on CentOS 5.4 for our SMTP service. Fairly standard setup with about 450 users. We're using a standard /etc/aliases file with includes to create various dynamically-generate aliases, including an "all staff" email…
Magellan
  • 4,451
  • 3
  • 30
  • 53
2
votes
3 answers

alias to replace a text in file

here is a practical situation.I facing some of my files where there is a common string in these files.I usually will open vi and do some thing like :%s/text/replacement/g and I have to do it in many files many many times. Is there some easy way…
Registered User
  • 1,463
  • 5
  • 18
  • 37
2
votes
2 answers

Unable to make Zsh not to suggest a fix for an alias

I have an alias for alias tdA='todo -a' I get the following in Zsh tdA zsh: correct 'tdA' to 'tda' [nyae]? How can you make Zsh not to suggest a fix for an alias?
2
votes
3 answers

Why is it necessary to set a netmask of 255.255.255.255 for “alias” addresses in FreeBSD?

From FreeBSD handbook on the topic of virtual hosts: For a given interface, there must be one address which correctly represents the network's netmask. Any other addresses which fall within this network must have a netmask of all 1s …
Eugene Yarmash
  • 2,433
  • 5
  • 34
  • 54
2
votes
3 answers

Does it break anything if I alias “..” to be “cd ..”?

I find myself wanting to type .. instead of cd .. a lot, so I created an alias for it in one my of my shells. It works as expected, and it doesn't seem to break basic cd and ls usage. Is doing this a bad idea?
Jeremy
  • 123
  • 4
2
votes
5 answers

Rewriting from headers in Postfix

I want to configure Postfix to replace the 'From' header in all forwarded/aliased messages with a custom email address, and the 'Reply-To' header with the original sender's address. Is that something that can be done with a simple configuration…
inxilpro
  • 185
  • 2
  • 6
2
votes
1 answer

JAMES apache mail server multiple e-mail aliases

Is it possible (and how) to add multiple e-mail aliases for a single mail account on JAMES mail server? I have tried using setalias to create an alias as shown here, but from what I've seen each subsequent call to setalias overrides the previous…
vgru
  • 1,287
  • 2
  • 17
  • 25
2
votes
1 answer

Why "Mod Alias" does a redirect loop?

My config: AliasMatch /browzerResources "/srv/default/browzerResources" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all creates a redirect loop…
Kyle
  • 562
  • 2
  • 5
  • 16
2
votes
2 answers

Security Cert issue with DNS Alias for RDP

I wonder if someone can help me - I'm a complete newbie when it comes to administering servers so apologies if I'm missing something obvious... We've decided on a naming convention which uses Elements from the periodic table (with VM Hosts as…
Basic
  • 426
  • 2
  • 9
  • 23
2
votes
0 answers

Google G Suite DMARC + SPF + DKIM for user domain aliases fail Google Admin Toolbox CheckMX

I have set up the above in my Google's old G-Suite account for a User Domain Alias but am still getting two warning messages: https://webcoder.co.uk There were some non-critical problems detected with the configuration of this domain. Depending on…
2
votes
2 answers

How can I create aliases upon connection to a remote machine via ssh?

I frequently connect to ephemeral servers. I'd like to be able to set up some commonly-used aliases on those servers upon connection to them. I thought maybe I could create a bash function/alias which took the target machine's hostname as an…
conorgriffin
  • 459
  • 1
  • 6
  • 25
1
vote
0 answers

Create custom sub-command for Docker

For Git user can create alias git config --global alias.co checkout git co master If Git cannot find build-in subcommand it looks for git-SUBCOMMAND executable in PATH echo -e '!/bin/bash\necho I love Git' >/usr/local/bin/git-love chmod +x…
kyb
  • 115
  • 7
1
vote
1 answer

How to check which DNS Alias is used to access the server?

I have a host with a database installed on it. In order to access the database, the clients use a DNS Alias (CNAME) - AliasOne - and the database port. DNS Aliases are managed by colleagues in another department. I had to request a more explicit…
1
vote
1 answer

Spoofing/Spam received from GSuite alias accounts

The company currently have 2 domains registered: "dom1.com" and "dom1.com.ex". "dom1.com" is hosted and is the main domain associated on our GSuite account to create user accounts to send mails, "dom1.com.ex" is an active domain for e-mail aliases…
Loki
  • 13
  • 3