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

learn more… | top users | synonyms (1)

0
votes
0answers
5 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
1answer
35 views

Get the ip address from ifconfig

I was updating my shell dot file, and I thought that it would be nice to have an alias that show just my ip. I usually connect with wifi, which is on wlan0 and it's the last "block" of devices. So ...
0
votes
1answer
17 views

Windows console aliases in any cmd.exe? Is it possible?

Thanks to similar questions, i figured out how to use aliases in Windows. I created *.bat file with content: DOSKEY tf=npm run testCucumberFirefox DOSKEY tc=npm run testCucumberChrome DOSKEY tie=npm ...
1
vote
1answer
66 views

How does one define aliases for use within MobaXTerm *local* bash shell?

I have been using MobaXterm for the last couple of weeks in Windows and I love it. However, I haven't quite figured out how to define my own aliases for use within the local bash shell. The obvious ...
0
votes
1answer
25 views

Setting up an alias in zsh, storing additional information

I am trying to build a triplet of aliases in zsh. jc, g1, g2, jc arg1 arg2 would be the same as the command cp -r arg1 arg2 And g1 is the same as cd arg1 and g2 is the same as cd arg2 The ...
0
votes
0answers
10 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
52 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
1answer
21 views

pentadactyl - syntactic sugar for command

On Pentadactyl: Use current tab's url in command I learned how to create a command that uses the current buffer's URL. I'm using this to rewrite the URL to use the hypothes.is "via hypothesis" ...
0
votes
2answers
61 views

Unable to send to email address with “plus” character using gmail

I'm attempting to forward emails from gmail to a project managed by active.collab. All I need to do to accomplish this is forward my email to an address like ...
1
vote
0answers
22 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
1answer
107 views

How to create an alias for multiple commands in ConEmu?

In Git-Bash I have an alias that executes two commands; update the list of branches for a git repository, then print them: alias glb='git remote update origin --prune && git branch -a' How ...
0
votes
1answer
20 views

piping output to an alias

in order to run a certain command I need to use sudo -h -u someuser <somecommand> in order to save some sanity I created an alias alias somecommand='function _dm(){ sudo -u ubuntu ...
1
vote
1answer
56 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 ...
0
votes
1answer
52 views

how to make alias ssh-add /bin/bash in bashrc?

how does not this work? alias push-bb="ssh-agent /bin/bash && ssh-add ~/.ssh/bitbucker_rsa && git push" I assume it cancels at /bin/bash part?
0
votes
1answer
24 views

info@email for several people of one open another should saw it [duplicate]

We have an email address info@ourcompany.com which forward with alias to couple email addresses of our company to work. What we need: if one of them (working people) open a message other will see that ...
0
votes
1answer
25 views

alias disables colour sustainably in bash

When I do tree -N I get nice coloured output. When I then alias tree="tree -N" tree output is black & white. When I then unalias tree tree -N output is still black & white! GNU ...
0
votes
0answers
172 views

Move openproject to subfolder using Apache alias

I am trying to install openproject following this manual: https://www.openproject.org/open-source/manual-installation/manual-installation-guide/ I can install the software as the default website ...
1
vote
2answers
202 views

What's the correct terminology for + email alias?

I'm trying to find a email host that supports aliases in the form of hello+world@yourdomain.com that will automatically send to hello@yourdomain.com. I know that Google Apps and Office365 both seem ...
0
votes
1answer
42 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?
1
vote
1answer
27 views

How to make an alias in root permament?

I did with an especific user, but i can't do that when the user is root (I know user root is not recomendable to use, but in my current job security policies are null in some systems and we want to ...
1
vote
1answer
37 views

How can I make alias for desktop folder on XP?

I don't want other users save file to system drive, how can I make a direct link of desktop folder to another folder?
0
votes
1answer
34 views

How do I make an alias for a Unix command that includes both single and double quotes?

I defined the following command: top -b n 2 -d 0.01 | grep 'Cpu' | tail -n 1 | awk '{print "cpu=" 100.0-$8 "%"}' which returns me the CPU usage in the form cpu=nn% I now want to define the alias ...
0
votes
1answer
99 views

Ubuntu clears Alias after closing the terminal's window

When I defined some aliases on Ubuntu vivid(15.04) via the terminal, it clears all aliases after I close the window. What can the problem be?
0
votes
0answers
78 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 ...
1
vote
0answers
14 views

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

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
1answer
49 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. ...
3
votes
1answer
438 views

How to save user made zsh shell functions and aliases

Shell beginner here! I'd like to create aliases and functions in zsh shell to speed up my workflow. For example: tw() { open -a //Applications/Textwrangler.app "$*"; } The function itself works, ...
4
votes
3answers
174 views

How do I force an application to recognise two names for a disk drive?

I have an extensive image database (3.25GB metadata, 90K images) held in a legacy product (idImager V5). This in turn utilises SQL Server 2005 as the underlying DBMS. Over time, I have been adding ...
0
votes
0answers
19 views

How to append “*” to the start and end of command line parameter in CSH?

In CSH example, echo aaa can print out “aaa”; I need echo_test aaa print out “*aaa*”. While alias echo_test 'echo "*\\!**"' can only print out “*aaa”. Thanks!
1
vote
0answers
57 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
2answers
61 views

Make :Wq equivalent to :wq in vim

I'm always typing :Wq when I mean :wq. Is there a way to alias :Wq=':wq' in vim?
1
vote
1answer
79 views

Alias one program in a different order than $PATH

I alias pandoc='~/.cabal/bin/pandoc' because I don't want to change my $PATH order just for this one program. In general, programs I installed in /opt/, ~/.cabal/, and so on should precede defaults ...
3
votes
2answers
1k views

Localhost aliases in Mac OS X mysteriously stopped working

For whatever reason aliases for my Mac OS X localhost seem to have suddenly stopped working. Presumably follow some update caused this, although I”m not sure what. Here’s my hosts file: ## # Host ...
0
votes
1answer
110 views

Alias options in zsh

When using the zsh alias command, what does the -s flag do (for example, lines 83-87 of oh-my-zsh's common-alias plugin?
1
vote
1answer
199 views

How to change a program path/alias?

I'm not sure how it works on Linux, but you can type in program names such as ls, man, etc., in any directory and the programs are executed. I uninstalled an old version of ImageMagick and built the ...
1
vote
2answers
140 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 ...
0
votes
0answers
70 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 ...
3
votes
1answer
8k views

Workaround for adding forward addresses to Gmail as aliases

I went to add an alias to a forwarded address (managed by GoDaddy, ie myemail@mydomain.com) in Gmail, and I noticed that Google changed their system. In the past, after you entered the name and email ...
1
vote
0answers
103 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
1answer
58 views

ZSH Cull Old Aliases

When I call alias in a zsh shell, I get a list of aliases. Some of them are desired, some are not. I originally created a .alias file in my home directory, and added source $HOME/.alias to my .zshrc. ...
0
votes
3answers
154 views

create alias for existing hostnames

the question has been asked numerous times but I cannot find a clear answer. I have a database on Azure: gtxxxxxxx.database.windows.net however, to make things more easy (I hate typing) I would ...
1
vote
1answer
631 views

alias not working with my mongo --eval command

I have the following mongo shell command to delete all users that aren't admins mongo --eval 'db.users.remove({group:{$ne:"admin"}})' collection This works. I want to create an alias for this ...
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
128 views

pass arguments to alias then disown

I am trying to create a simple alias: alias draw="pinta &> /dev/null & disown" The intent here is pretty obvious. My problem is that whenever I pass an argument, I get bash: disown: ...
6
votes
1answer
2k views

How to remove zsh alias?

I have an alias which is predefined by an oh-my-zsh plugin. -> % alias gcm gcm='git checkout master' I'd like to remove it, i.e. I'd like alias | pcregrep "\bgcm\b" return 1. I've tried with ...
3
votes
2answers
225 views

How do I handle multiple quotes in an alias (for bash or zsh)

I am using zsh, and I am trying to use python as a simple calculator. I'm very familiar with python, but can't seem to get the alias (or function) to work properly. So far I've got: pycalc() { ...
0
votes
2answers
2k views

Unable to create a permanent alias in Mac OS

In Linux I can well to add alias to bashrc and it will become a permanent alias. In Mac OS I tried to do the same thing: vim ~/.bashrc export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH f or ...
1
vote
1answer
67 views

Echoing aliases to .bashrc

I want to echo an alias straight into my .bashrc file. Here is what I am using: echo alias cdear='cd | clear' >> .bashrc However, the new line in .bashrc does not contain the quote marks. I ...
0
votes
1answer
452 views

bypass 'noglob' for 'which' in zsh?

I want to use the 'which' command to see which executable is actually being invoked, but the defensive 'noglob' aliases keep getting in the way. Is there a shortcut that I can use to find which ...
0
votes
1answer
102 views

SSMS view designer - how do I give a table an alias?

I'm struggling with getting SQL Server Management Studio to do what I want. Things that were totally simple and easy tasks in Enterprise Manager have inexplicably become hard or impossible. Case in ...