In computing, an alias is an alternate name for an object, such as a variable, file or device.

learn more… | top users | synonyms (1)

4
votes
2answers
2k views

Create an alias to a samba share from the command line

I'm currently wanting to deploy a setup to around 300 Macs. I have all of it scripted and ready to deploy, excepting that I'm having trouble creating a working alias to a samba share from the command ...
1
vote
2answers
208 views

Can we use regex in alias command?

I want to create the alias for this command. ssh user@ip as alias [0-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9] ="ssh user@$0" I have created it ,but it is not working. Is there ...
1
vote
2answers
75 views

Remote login in, creating alias, need advice

I usually remote login to the server at my school. I have a user name and password. The command is 'ssh -l username -p port machineName'. (username is mine, port is a number and machineName is the ...
1
vote
2answers
130 views

Changing the program name displaying on Konsole, using an alias

I have an alias for irssi:alias irssi="screen irssi. When I am running irssi in Konsole, the tab name shows up as "screen". Is there a way to make it display as "irssi"? My tab format on Konsole is: %...
1
vote
2answers
138 views

System-level bash/zsh alias blacklist

Is there a blacklist feature/functionality in bash/zsh to prevent specified commands and such from being overridden with an alias? Specifically - is there something that can be set system-level in a ...
0
votes
2answers
176 views

command line alias versus .bash_profile alias

when I create this alias from the command line everything works fine alias ejecta='for I in 1 2 3; do /usr/sbin/diskutil unmountDisk disk$I;done' When the same alias is created in .bash_profile. the ...
1
vote
1answer
25 views

How to run aliases under tmux without root privilege

Under terminal multiplexer tmux I am unable to use alias as a normal user. alias l='ls -CF' alias la='ls -A' alias ll='ls -alF' alias ls='ls --color=auto' For alias of alias l I have to type ls -...
1
vote
1answer
83 views

Shell aliases when launching programs from within a Desktop environment (Alt+F2) or window manager?

I'm quite confused about how X runs its programs. As I understand it, much of the environment for programs run by the desktop environment (Gnome/XFCE/i3) is setup (traditionally) in /etc/X11/xinit/...
1
vote
1answer
70 views

change IP when a CNAME is used

I want to set 96.7.41.139 as IP address of download.microsoft.com I checked this post: http://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot and set hosts as below. 96.7.41....
1
vote
1answer
3k views

How can I set outlook web app to send from/send as an email alias?

I have an email account I access through the outlook web app and I have an email forwarder. I want to be able to send messages appearing as from the email forwarder. How can I set this up?
0
votes
1answer
24 views

need to source bash_profile in each new iterm window

I am on macbook pro, el capitan. I have aliases set in .bash_profile, which work in the first instance of iTerm, however they are not recognized if I open a new iTerm instance, I have to do source ~/....
0
votes
1answer
23 views

Find the location of an alias definition

I can find the location of a function definition, but this doesn't work for aliases: $ type -a subl subl is an alias for /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl subl is /...
0
votes
1answer
62 views

Is there a standard place to put my Aliases? bashhrc vs. bash_aliases

Is there a standard place to put custom aliases? If not, what are the benefits and disadvantages of .bash_aliases, .bashhrc, and .bash_profile?
0
votes
1answer
125 views

how to redirect root directory alias to a document_root subfloder in lighttpd?

I have this directory configuration: htdocs/www -> web site pages htdocs/WEB-INF -> lib and classes, used in web pages htdocs/data -> data (images, documents) This is how I do it, with ...
0
votes
1answer
14 views

How to use aliases for catalogs for file creation navigation

if I have some aliases like Catalog1 (/home/ed/1), Catalog2 (/home/ed/2) I have scripts in Catalog1, and Catalog2 is for output saving, f.e. : python /home/ed/1/one.py > /home/ed/2/log1.txt i ...
0
votes
1answer
29 views

What happens when we alias an IP address to a system?

What happens when we alias an ip addr which is already allotted to some other on the same LAN. Is aliasing local to my system?
0
votes
1answer
153 views

Save Linux aliases for later usage

After repeating an Arch Linux installation for several times I started to wonder whether I could make things easier for me in the future by taking some general commands that I am bound to use again ...
0
votes
1answer
76 views

How to make an alias and work in sh for all users (not in bash)?

My question maybe is silly, but how can I make an alias so as to work in sh for all users? I know that I can put an alias, let say this one: alias ls='ls -l' in /etc/bash.bashrc so as to work in ...
0
votes
1answer
53 views

Multiple drupal installations on apache work with their own DNS entries but not with Alias

So my localhost server has never had a problem because I've never been developing with other people on multiple websites. Now, however, accessing a secondary site via an Alias is running into a ...
0
votes
1answer
140 views

How to get alias working on server that is connected via ssh?

I connect to another server using command: ssh -Y server1 On server1 I add an alias in .bashrc file: alias gousr='cd /opt/user/myuser' When I try to run gousr command at server1 xterm, it says "...
1
vote
0answers
62 views

httpd 2.4 returning forbidden message when using alias

As a part of displaying a live log file, I managed to setup and deploy an httpd server on fedora 19. For accessing the log files that are outside the www folder, I created aliases, so that when test ...
1
vote
0answers
17 views

Suffix Aliases feature in powershell

I'm looking for ability to run certain cmdlets when calling files with some extensions. For example, when calling PS> .\test.php I want to call Invoke-Php .\test.php. Something like suffix aliases ...
1
vote
0answers
47 views

Resolving a Heroku App by Cascading two CNAMEs

I am cascading two CNAMEs, for various nefarious reasons, using AWS Route 53. I would be equally happy to use a Route 53 alias followed by an CNAME, but although both techniques appear to resolve ...
1
vote
0answers
18 views

How to send authenticated email as same email for public folder with MS Exchange

Is it possible to create an authenticated MSExchange user that can send email on behalf of any other user in the system (public folder emails as well) without configuring it on a user-alias basis? If ...
1
vote
0answers
60 views

How to automatically log-in to remote MySQL instance via ssh behind another host?

I have an alias set up to ssh to a remote machine through a proxy ... alias sshcmd='ssh -t davea@proxy ssh destmachine' but I want to set up an alias where I ssh into the remote machine and then ...
1
vote
0answers
144 views

Does Apache Alias supports relative paths?

I'm trying to alias a file with relative path from the document root, like this: Alias /js/jquery-1.9.1.min.js lib/jquery-1.9.1/jquery-1.9.1.min.js It does not work, but I can't find anything in ...
1
vote
0answers
327 views

Dovecot/Postfix-mysql e-mail Aliases are not correctly forwarded

I recently set up Dovecot/postfix-mysql on my Debian Squeeze Server and I have a bit of a problem. When ever I send a email to an alias (foobar@mydomain.com forwarded to foobar@gmail.com for example) ...
1
vote
0answers
703 views

Running Windows XP Command Line from CMD.exe does not load autorun processor batch file

I have a batch file set to load up when the Windows XP command line (cmd.exe) starts (using the registry key Command Processor as detailed). Unexpectedly, the batch file only runs under certain ...
0
votes
0answers
9 views

Cmder : how to use an alias in another alias?

I would use an alias in another alias in Cmder. I'm having a nice alias (the first) to a big command, and I would use it inside another one (the second) : mergelocdist=git fetch origin --prune --...
0
votes
0answers
27 views

Docker exec doesn't load aliases

I have a bash alias loaded into a Docker container, in /etc/bash.bashrc. It functions as a shortcut to a commandline PHP script. This is convenient, since anyone can use that alias directly after one ...
0
votes
0answers
12 views

Make mydomain.fr “mirror” to mydomain.com/france/ - possible through .conf?

Is it possible to mirror/point various specific domain names to a given .com/suburl/ through .conf configuration? Examples: mydomain.fr > mymaindomain.com/france/ mydomain.se > mymaindomain.com/...
0
votes
0answers
45 views

Upgrading gcc, ghostcript and aliases

My problem has multiple faces and I will really appreciate if anyone can help me sort it out. The origin of the problem can be traced here: High memory usage of eps file So, I thought I better ...
0
votes
0answers
8 views

How to configure MS Exchange 2010 to receive emails on “+” aliases like foo+bar@foo.bar

is there a way how to configure Exchange so users can receive emails sent on their alias formed with the "+" extension? For example, let's have an user Mr Smith with address mr.smith@foo.com and sb ...
0
votes
0answers
14 views

Apache: Serve static web content and django app from the same URL

I want to know whether it is possibe to serve static web content, ie. public_html and my django app from the same url. To be more specific, I want requests to first go through public_html and then ...
0
votes
0answers
147 views

Nginx try_files and alias does not work with variable?

Here, without variable everything works fine - I get the file I need: location /aaa/ { alias /home/bbb/current/; try_files $uri /aaa/index.en.html; } but once I make "en" a variable set $zzz "en"; ...
0
votes
0answers
74 views

Linux bash - Add alias from script without source(-ing) the script

Is it possible to write a script like #!/bin/bash alias foo="bar -options" and get the alias added to the running shell without source(-ing) the script source myscript will work, but just ...
0
votes
0answers
252 views

How to read aliases in a ksh script

I have some global aliases defined in my ~/.profile file. To read them from a bash script, I'd use: shopt -s expand_aliases source ~/.profile However, in ksh this does not work because it does not ...
0
votes
0answers
756 views

PHP does not work on alias (XAMPP)

I trying to make alias on my local machine with XAMPP for my PHP project. I added follow in httpd.conf: Include "conf/alias/*" And make two files for aliases, one of them is like: Alias /aiuu "d:/...
0
votes
0answers
538 views

How to set an alias which will automatically ssh to another server

I often use this command to connect to another server with x forwarding: [myuser@server1]$: ssh -Y 10.32.45.123 (10.32.45.123 is server2) myuser@10.32.45.123's password: [$myuser@server2]:$ I ...