The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
19 views

Alias not working

I have an alias that does an ssh into a machine and executes 1 line of code as following: alias posts-update= 'ssh user@host.com "cd /var/www/blog/posts && git pull"' This works perfectly ...
-2
votes
1answer
27 views

Remove an alias on Windows 8?

I've set an alias for a command and now I want to remove it again. How would I go about that? I've already tried unalias, but that doesn't work.
0
votes
1answer
19 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
18 views

Where to put alias commands for use in Windows 7 [duplicate]

I know you can add alias commands in Linux to the .bashrc file, but Window 7 definitely does not use bash. Where and how can I add alias commands for use in the command prompt cmd.exe?
0
votes
0answers
16 views

goto inside alias is working only in one way

Why this is not working? #!/bin/csh goto skip_background run_in_background2: echo inside background goto back_from_backgroung skip_background: echo skipped alias run_in_backgroundx 'echo aliass \ ...
1
vote
2answers
22 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
3answers
68 views

How to write alias to use first parameter or * if parameter is blank?

I want to write an alias command for 'ls', so that if I pass in a parameter, then the alias will use it, but if I do not, then it would use '*' instead. This is the alias I have today: alias lsd='ls ...
0
votes
2answers
113 views

Shell function in .bashrc is not recognized

I know this must be something silly but somehow I am stuck trying to create a shortcut (alias) for a shell function. Here is my exact .bash_profile: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source ...
3
votes
3answers
916 views

Add a static IP alias to a DHCP interface on Windows 8

I have a Windows 8 machine that has only a single Ethernet port. It needs to use DHCP and also needs a static IP. Each IP is in a different subnet, and each serves a different, incompatible purpose. ...
0
votes
1answer
48 views

nested aliases in /etc/aliases: which order?

my /etc/aliases (ubuntu 12.04 lts) already contains some aliases redirecting to root: postmaster: root clamav: root monit: root now I want to add another alias that redirects all root messages to ...
0
votes
2answers
47 views

Alias for directory using a symbol

I'm looking to set up an alias for my work directory, which can change as I change context, and I was trying to find something that was short enough to stand in as a replacement for ~. I'd be tickled ...
1
vote
1answer
35 views

Where is virtualenv's deactivate defined?

Virtualenv defines an alias for the command deactivate as seen in yourvirtualenv/bin/activate.csh. What I'm curious about is where deactivate resides, because when I issue an alias command deactivate ...
0
votes
0answers
32 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 ...
2
votes
1answer
65 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
27 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
79 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
74 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
76 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
78 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 ...
0
votes
1answer
66 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) ...
1
vote
1answer
155 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 ...
-1
votes
1answer
70 views

How to copy from couple folders back to the current directory?

I just came to an interesting question in Linux. I want to find a shortcut for copying from multiple folder back in the path to the current path. For example: A/B/C/D/E> cp ../../../example.txt . ...
2
votes
4answers
111 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 ...
1
vote
1answer
77 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
69 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
346 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
161 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
114 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 ...
1
vote
2answers
49 views

alias or function for emacs command?

So I'm on my first day at my new job, and on the server we use, the default emacs is X-windows based. I much prefer using it in the good old terminal, and I'd like to be able to make the command ...
0
votes
1answer
50 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
165 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 ...
2
votes
1answer
817 views

How to create aliases in windows [duplicate]

In Linux I can do this : ln -s /tmp/mydocs /home/user/docs/ it will create alias to /home/user/docs/ and I can access to docs with cd /tmp/mydocs/ In windows : I have this directory ...
0
votes
1answer
262 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
63 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
110 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
640 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
1answer
62 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
2answers
273 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
1answer
48 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
0answers
253 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
1answer
133 views

How to make an alias to a part of a block device

Is it possible to make a part of a block device to be seen as a separate block device (in a similar way block 'devices' are created for partitions)? Unfortunately, I can't mount it through loop device ...
3
votes
1answer
392 views

Can I make a custom “directory alias” like '~' in bash?

In bash I can go to my home directory with cd ~ and actually refer to my home directory with any command with ~. Can I make new, custom "directory aliases" (?) to refer to other directories? ...
6
votes
1answer
222 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
105 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, ...
5
votes
2answers
93 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
55 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
2answers
78 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:/ / ...
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 ...
1
vote
1answer
209 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, ...
3
votes
2answers
118 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 ...