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
3
votes
1 answer

Easy way to alias the default SQL Server instance to a named instance?

I have SQL Server Express installed on my machine as the default instance. "server=.;database=...." I'm now working with a new client where their config files are all checked into the repository. They use a named instance of SQL Server .…
roufamatic
  • 144
  • 1
  • 9
3
votes
1 answer

Aliased network interfaces and isc dhcp server

I have been banging my head on this for a long time now. There are many discussions on the net about this and similar problems, but none of the solutions seems to work for me. I have a Debian server with two ethernet network interfaces. One of them…
Jonatan
  • 145
  • 1
  • 7
3
votes
1 answer

`sudo` with alias in Bash

I have a couple of aliases setup in my ~/.bash_profile and the same exact ones setup in /root/.bash_profile so I can do v file instead of vim file and etc. These work fine when I am actually logged in as those users, but when I do something like…
3
votes
1 answer

Active directory user alias

Do you know if exists something like "alias" for domain users? On my domain I have a short username (ex. n.surname) and i would like users could login with extended name (es. name.surname) to the same profile. Is it possibile? Thanks
Tobia
  • 1,272
  • 9
  • 41
  • 81
3
votes
3 answers

Apache dynamic aliases

I've got LAMP setup on a VM that I use for multiple projects. My document root is a /www and I create a folder for each project within it. /www/project1-name/ /www/project2-name/ I access them in my browser like…
Atticus Finch
  • 41
  • 1
  • 4
3
votes
3 answers

How to set local alias for a machine?

I would like to set an alias on my local PC for a network machine. I know that it can be done by adding an entry in the hosts file as long as the IP address of the machine is also specified. However, the problem is that IPs are dynamically assigned…
Alex G.
  • 133
  • 1
  • 1
  • 4
3
votes
1 answer

Fixing 'Relay access denied' in Postfix

Before you claim about duplicates and so on, I've checked these topics: Postfix "Relay access denied" How to correct Postfix' 'Relay Access Denied'? The above topics doesn't solve my problems, perhaps this is something to do with my configuration…
MacMac
  • 2,061
  • 10
  • 31
  • 38
3
votes
2 answers

Alias a Virtual Directory or Application as Root on IIS 7

Our current IIS setup as two applications running on different paths at (for example) http://server/sub-a and http://server/sub-b. I want to alias http://server/sub-a as root so that just going to http://server/ will bring up the contents of sub-a.…
manyxcxi
  • 157
  • 3
  • 3
  • 8
3
votes
3 answers

How do I write a bash script that sets up aliases for the parent shell?

I'm trying to write a script that will set up aliases for my bash shell, but I don't want to source it automatically in .bashrc - I need to have the aliases in a subset of my terminals. Is it possible to alias a command in a script and have the…
stickmangumby
  • 526
  • 2
  • 5
  • 11
3
votes
1 answer

Nginx - difference between root and alias?

My goal is to have a Laravel installation running alongside a Nuxt application generated as static content. I'd like for Laravel to be available, when the location start with /api. This works as expected. For any other requests, I'd like to have…
Repox
  • 265
  • 1
  • 3
  • 14
3
votes
4 answers

Unable to create email alias because it already exists, but cannot find the instance of it

Error: An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online. However, it failed. Detailed error message: Another object with the same value for property EmailAddresses already exists. The…
2
votes
2 answers

Using www.example.com as the A record

I want example.com and *.example.com to always resolve to www.example.com So if I set the DNS records as: www A server ip (root) CNAME www.example.com * CNAME www.example.com Would these be the correct settings to…
2
votes
3 answers

postfix - allow sending email with related alias

I have installed postfix 2.11.3 + +sasl + postfixadmin + dovecot + roundcube on debian 8. All is working fine but today every users can send email with another email address. I would like to add a restriction to allow the users to send email only…
hrvz
  • 33
  • 1
  • 5
2
votes
2 answers

where is the "module" a command coming from - aka why it doesn't show up in alias?

Consider the following: $ module cmdModule.c(166):ERROR:11: Usage is 'module command [arguments ...] ' Modules Release 3.2.6 2007-02-14 (Copyright GNU GPL v2 1991): Usage: module [ switches ] [ subcommand ] [subcommand-args…
Davide
  • 151
  • 8
2
votes
1 answer

simple nginx alias not working while trying to serve files other than document root

i am trying to serve images which are stored in different location other than document root. #avatar files block location ~^/pics/profile/(.*)$ { alias /home/data/site_data/profile/$1; } i have added above code block in the nginx .conf…
user138870