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

learn more… | top users | synonyms (1)

1
vote
3answers
126 views

How to create domain “alias” for entire url?

I have set up a DNS server for local use in a LAN. This server can resolve IP addresses, so when I ping mypc.company I get a successful reply from the IP address 192.168.1.34. Problem I have ...
-1
votes
0answers
16 views

How to copy the actual content of a file shortcut?

A folder has been created and contains a lot of file shortcuts instead of the actual files. I want to fix that error and I need to replace those .lnk files with the file their are pointing to. I'd ...
1
vote
0answers
55 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 ...
48
votes
3answers
12k views

how to expand aliases inline in bash?

Is there a way to expand aliases inline in bash? $bash>alias ll='ls -l ' $bash>ll<tab> $bash>ls -l
0
votes
0answers
18 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
0answers
9 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 /...
2
votes
2answers
378 views

Working shell command doesn't alias

I can run, svn status |grep -v .jasper$ |cut -d ' ' -f8 |sed '/.*\..*/!d' |xargs ls -altr --color=auto just fine. But when I go to add this as an alias (alias svtr="...") I get an error saying... ...
0
votes
1answer
117 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
1answer
18 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 -...
0
votes
1answer
17 views

Screen does not read /etc/profile.d on startup

Whenever I start screen, my alias definitions in /etc/profile.d are missing within screen. How can I make screen read/source all files in /etc/profile.d/ on startup?
2
votes
2answers
37k views

How do I set an alias name in the hosts file?

I have a production server, on which three different application are running. I need to configure aliases for that server, according to which application needs to be accessed by the user. How do I ...
7
votes
1answer
5k views

Can I “export” an alias to the SHELL that invoked a script?

I'm trying to write a utility script that defines certain aliases. My SHELL is tcsh (can't change that). I tried the following #!/bin/tcsh alias log 'less ~/logs/log.`date '+%Y%m%d'`'' Then I ...
0
votes
0answers
11 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/...
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
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
1answer
28 views

Making an alias to add key to remote authorized_keys file

Generally when creating a new web server, in order to login via SSH without having to type in a password, I would add the host to my ~/.ssh/config file like so: Host foobar HostName 111.111.111....
2
votes
4answers
4k views

Quick Mac OS X shut-down icon

How would I create an icon on my Mac OS X desktop, to do a "shut down"? (With... or without... the "are you sure" verification.)
1
vote
3answers
24 views

Set Windows command prompt aliases as regular user

As a regular user in Linux this can be done via the command alias and can be permanently stored in the .bashrc file As a regular user (not administrator) can I set command prompt aliases in Windows 7?...
0
votes
0answers
42 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
6 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
42 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 I'...
0
votes
1answer
38 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
1answer
28 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 ...
2
votes
1answer
561 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 ...
6
votes
1answer
2k views

overriding user defined functions with the same name as system commands

This function exists in one of my users' ~/.bashrc: function rm() { ls $* echo "rm?" read ans if [ "$ans" == 'y' ]; then /bin/rm $* fi } In ...
3
votes
3answers
390 views

How do I make a bash alias that outputs file names in a format I can pipe to vim?

When rebasing with git, I'm interested to open the files that have merge conflicts. I can do this with: vi `git diff --name-status --diff-filter=U | awk '{print $2}'` but if I alias that: alias ...
0
votes
1answer
32 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
12 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 ...
3
votes
1answer
1k 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, ...
0
votes
0answers
116 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
2answers
92 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 notifications+8bgom2idjf@activecollab.com....
1
vote
3answers
3k views

What is the correct way to alias applications in OS X through bash?

In my ~/.bashrc, I have several aliases like: alias emacs='/Applications/Aquamacs.app/Contents/MacOS/Aquamacs' alias octave='/Applications/Octave.app/Contents/Resources/bin/octave' alias wine='/...
7
votes
5answers
21k views

How do I create a symbolic link in Mac OSX?

I have a .sh file that I need to create a symbolic link. I would like to be able to access the file using the Terminal. The command I use is: ln -s /path/roo.sh /usr/bin/roo But when I type roo, ...
1
vote
0answers
44 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
434 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
31 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
77 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/...
0
votes
1answer
75 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
169 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
2k 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
27 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 bash,...
0
votes
0answers
229 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
310 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
57 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
31 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
46 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
38 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
118 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?
4
votes
3answers
178 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 ...