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

learn more… | top users | synonyms (1)

2
votes
1answer
81 views

What's the rule on using the word “git” as an alias?

I used to keep my git aliases in a file outside of my .gitconfig file, in the normal format of: alias gb="git branch --verbose" which worked great. But, after looking around at others' dotfiles, I ...
0
votes
0answers
42 views

Device not found after adding a network alias

Interface em1 works fine. I issued ifconfig em1:0 1.2.3.4 followed by > ifconfig em1:0 The error is 1.2.3.4 error fetching interface information: Device not found CentOS 6.4. What gives? ...
0
votes
1answer
96 views

How to add network aliases in Linux for network computers

In Windows, the c:\windows\system32\drivers\etc\hosts file lets you add aliases to IPs so you can remember those computers with a familiar name. Here's the header of the HOSTS file, for example ...
1
vote
1answer
882 views

Create alias (desktop shortcut) of an application installed by Macports

I just installed Dia using macports. Now, I need to place the shortcut in the Apps folder and also make the executable available in the Spotlight search. How can I do that?
1
vote
1answer
93 views

Is it possible to alias regexp substrings in vim?

I want to find and replace pattern containing floating point numbers using vim. I found this nice regular expression for such numbers: [-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? This expression makes ...
0
votes
3answers
154 views

Create alias or add path?

I've just installed a new program (let's call it foo) on my Linux machine. The program's files are in an unusual location that is not currently part of my $PATH. If I would like to be able to easily ...
0
votes
2answers
99 views

Use the result of 'whoami' as part of an alias

I am setting up my default .bashrc on my Ubuntu machine that I will soon be adding more and more users to. One command that users will have access to is mysql, logging them into the SQL system on the ...
4
votes
3answers
4k views

How to alias a hostname?

Is it possible to keep a network alias - without specifying the IP address in the hosts file? For instance, I have abcd.efgh.com but want abcd -> abcd.efgh.com so that ping and ssh work as they ...
0
votes
1answer
81 views

How to create terminal shortcut to desktop?

I did find this answer here. However could not get it to work with my current setup :( For example, when I start up iTerm currently it's been set to a specific direction (another developer did that) ...
0
votes
2answers
80 views

How can I automate my usage of three VM machines with the same alias?

How do I automate my usage of three VM machines which require me to add a IP aliased to a name in my HOSTS file. I upload code to the server of choice and then I go to the address http:/ / ...
1
vote
1answer
290 views

How to add an application to Mac Applications folder

I'm looking to add software installed elsewhere (eg. home or opt) to the Mac's (10.8) Applications folder. The goal here is to get all the benefits like the application listing in the launcher and ...
2
votes
4answers
140 views

Using standard unix commands, how do you grab a bunch of lines?

I have several text files with this format: name: john address: bay area phone: 6505561234 image: /work/myimage.png name: stark dob: 5AD shirt color: red physical address: Westros phone model: S2 ...
6
votes
2answers
2k views

Console 2 command aliases

I use Console 2 and I would like to create some aliases for commands I use often. Maybe my google-fu just sucks today but I cannot figure out how to do this. Any help would be appreciated thanks.
1
vote
1answer
98 views

Alias for viewing logs with todays date

I want to create an alias: alias readFile='ls file1.todaysdate' where todaysdate is in format 130714. How would i do this?
1
vote
1answer
89 views

Cannot type a letter while in Bash in Cygwin

I am unable to type a certain letter while in bash. I was editing .bashrc, or possibly .profile, which made it impossible to press the letter "a" (it is not showing up on screen, although I am able ...
0
votes
1answer
473 views

Resetting $PATH in OS X 10.8

I was trying to install jhbuild earlier as part of a GTK+ install, and ran the command alias jhbuild="PATH=gtk-prefix/bin:$PATH jhbuild". Since then, I haven't been able to access many important ...
1
vote
1answer
451 views

Creating an 'alias' or 'symlink' to a separate folder in apache

-/ |--bin |--home |--user_1 |--somefile.html |--somefile2.html |--user_2 |--differentFile.html |--var |--www |--file1.html i want the urls to be ...
1
vote
2answers
136 views

How do I make an alias work when I need to invoke more than one binary in the same command?

Say I have two binary files: binary1 and binary2. Each of them has its own option set: options1 and options2. Users need to invoke a command that follows this structure: binary1 options1 binary2 ...
0
votes
1answer
64 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
258 views

Create an case insensitive apache alias

I am currently using Apache 2.4.4. Now, the problem is that when I am creating alias like Alias /mysite "D:/MySite" it doesn't work for http://127.0.0.1/MySite. So how can I make it case ...
0
votes
1answer
407 views

How to place a folder into a variable location (~/Library/Application Support) and then make an alias to that folder quickly?

Would it be at all possible to do the following: Place an entire folder within the ~/Library/Application Support folder on a Mac. Make an alias on the desktop to a link inside that folder. I'm ...
3
votes
2answers
67 views

How enter in folder with one command?

I work a lot in two folders: /home/valter/Dropbox/Development/git/valter /home/valter/Dropbox/Development/git/company I would like to create command like: $valter and enter in ...
0
votes
2answers
134 views

Setting an alias only for current user in Unix

I want to create a Unix alias, that allows me for example to type l for ls -l. Nevertheless, I do not want to modify the file /etc/bash.bashrc as that one applies to all users I believe. How can I ...
2
votes
3answers
1k views

Where are aliases set in CentOS?

There is a typo which causes an error message upon logon (someone typed lias instead of alias). I have checked /etc/bashrc as well as ~/.bashrc and /etc/profile as well as ~/.bash_profile for ...
0
votes
2answers
412 views

Error in url alias in lighttpd

I have this configuration: alias.url = ( "/acruz/" => "/var/www/localhost/htdocs/acruz/", "/jvangemeren/" => "/var/www/localhost/htdocs/jvangemeren", "/doceno/" => ...
0
votes
2answers
599 views

make an alias to move files to a tmp directory

I am trying to create an alias to move files and directories to the tmp directory. This is what I've tried: alias rm='/bin/mv *.* /tmp' The problem is that when I type rm filename, I get an error ...
0
votes
1answer
51 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 ...
5
votes
1answer
1k views

What does “network” mean in the /etc/network/interfaces file?

In Linux, to define aliases, we have to modify /etc/network/interfaces.. Something like this: auto eth0:1 iface eth0:1 inet static address 192.168.1.60 netmask 255.255.255.0 network x.x.x.x ...
0
votes
0answers
419 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 ...
2
votes
5answers
2k views

bash alias for “cd directory; ls”

How do I create BASH alias for: I type in cdd directory and what that does is cd directory and then ls?
5
votes
2answers
109 views

Aliases with numerical names

I just installed Oh My ZSH on my Mac. Everything is working great, except I can't define aliases with numerical names. If I execute alias 5="cd ~/Projects/Projectname/" 5 I get the following error ...
2
votes
1answer
511 views

How do I create a PowerShell alias (or function) that contains an option?

I'm learning PowerShell, so I'm doing stuff like this a lot: Get-Command | Out-String -Stream | ss child (ss is an alias for select-string). I'm getting tired of typing Out-string -Stream all the ...
6
votes
1answer
234 views

I deleted my aliases file, but my aliases are still in my bash session - how can I recover them?

I had a ton of aliases defined and I use them all the time. I have a terminal session open now in which all the aliases are valid and working. However, the .bash_aliases file in which they were ...
0
votes
1answer
117 views

Gnome terminal new tab behavior

I have an alias for cd command that does some additional logic before running actual cd (if you want the details, it activates virtualenv if it finds it in the directory). But when I open a new tab, ...
2
votes
1answer
68 views

Trying to create bash function which collects and quotes all arguments, but it doesn't work if args contain brackets or single quotes

I saw the following shortcut for "git commit" suggested somewhere: function gc { git commit -m "$*" } This is supposed to allow you to write the commit message inline in the shell, without quotes ...
0
votes
1answer
26 views

how to edit aliases

I just started looking into aliases and I already created a couple aliases before reading how to write alias commands into files so you can easily edit them. If you just directly run the command ...
3
votes
2answers
124 views

Do aliases slow down a shell's start?

Sometimes my shell (zsh) takes longer to start than usual (I open the terminal, and it hangs a bit until I can input commands). I have a few aliases on my .zshrc (well, actually they're in a ...
1
vote
1answer
265 views

Alias defined in .bashrc not working after pipe

I'm stuck with the following problem. I've defined an alias in .bashrc (and .bash_profile): alias echo2="echo" This works well: $ echo2 "test" test However, if I try to use it after a redirect, ...
1
vote
2answers
428 views

Can I have two different users in Windows XP to use the same local profile (user alias)

I need to have two different userIds that map to the same local profile. What I really need is to have to users that are the same one. Is this possible? Thanks!
1
vote
2answers
113 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
1answer
62 views

Alias a protocol to a url

I currently work in an organisation which is mostly Windows users but there are some including myself using Linux here. We have a shared storage drive which we use for sharing files between us and I ...
2
votes
3answers
268 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 ...
2
votes
1answer
310 views

OS X: is there an application that can check for broken aliases in Finder?

I use a lot of aliases in my file system. Many original documents are placed in global repositories and I access them by aliases grouped in "tag" folders. Therefore, when I need to delete such a ...
0
votes
1answer
285 views

mac finder - how to open alias in a new finder window

I am doing a video project in which I created a folder with a bunch of aliases to files on various spots on my hard drive, so that I could have references to those files all stored in one location but ...
11
votes
1answer
2k views

Vim Ignores Aliases

If I map a command in vim using something like map <f4> :! pdflatex %<cr> Vim will ignore my alias for pdflatex (something like alias pdflatex='pdflatex --temp-dir=something'). Is it ...
1
vote
0answers
258 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) ...
0
votes
2answers
54 views

Disabling sudo halt

It's happened to me a few times now, that I want to shut down my own computer, grab the next best terminal (always have two dozen of them floating around), and type sudo halt, only to realize I've ...
1
vote
2answers
96 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 ...
3
votes
1answer
244 views

How to create alias for - minus sign

I want to map the - to cd - I've tried escaping it, w/ and w/o single/double quotes but neither of them seems to work. alias \-='cd -' or alias '-'='cd -' => bash: alias: -=: invalid option ...
0
votes
2answers
707 views

MSYS: alias resets upon restarting MSYS console

Every time I reopen the MSYS console (not cmd.exe) I find that the aliases that I have added to the shell are cleared. How can I save my aliases so that I do not to reenter them on every use? For ...