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
1answer
530 views

On Mac, why doesn't alias la 'ls -la' work?

When I run alias la 'ls -la' I get the error: ls: alias: no such file or directory How do I alias la to ls -la?
0
votes
2answers
333 views

What is a simple standard command line way of getting 'ls' to produce file permission in octal?

Any know a standard way, other than 'stat' to produce octal output for file permission from 'ls'? Standard way of using stat (on OSX) is: stat -f '%A %a %N' * where * can be any file pattern that ...
0
votes
1answer
22 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
2answers
147 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
2answers
798 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
781 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
3answers
1k views

Launch application from bash terminal then kill terminal while leaving application running

I would like to use the following scenario for my favorite applications under Linux (Ubuntu 10.10) in order to save grabbing the mouse and clicking them: Open a terminal (Ctrl-Alt-D) Type my alias ...
0
votes
1answer
536 views

Linux Bash alias: Why does it says -xvzf not found

I have used mkalias suggested here http://superuser.com/questions/114546/how-to-store-a-unix-alias by typing mkalias untar "tar -xvzf" but it says -xvzf not found Why ?
0
votes
1answer
51 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
1answer
90 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: ...
0
votes
2answers
834 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 ...
0
votes
3answers
129 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 ...
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 ...
0
votes
1answer
75 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 ...
0
votes
1answer
52 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 ...
0
votes
1answer
79 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
2answers
487 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 ...
0
votes
1answer
138 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 ...
0
votes
1answer
30 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 ...
0
votes
2answers
57 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 ...
0
votes
2answers
534 views

Linux dynamic alias

I am very new to Linux. I just found the alias command which is very useful as I quite often have to dig through log files So I need to regularly open text files they are generally stored in the ...
0
votes
2answers
108 views

Setting up an alias that waits for the next prompt to enter a command

I'm trying to set up an alias that connects to an ftp site.. so far (with the help of SO :] ) I've been able to create the alias that will connect. I've tried adding the next command preceded by a ...
0
votes
1answer
512 views

create alias to ssh to a server and then connect to mysql

I currently have an alias to connect to a remote server: alias server='ssh user@ec2-00-00-00-000.compute-1.amazonaws.com' I would like to have an alias to connect to this server, and then ...
0
votes
2answers
768 views

MacVim behaving strangely with my aliases (even setting shell=/bin/bash\ -l)

I wanted to write some scripts and have MacVim call some bash commands. I have some aliases and wanted vim to be able to call them, so I knew I needed a login shell, just didn't know how to make vim ...
0
votes
2answers
487 views

Symlink to Files & Dirs in Dropbox

I just installed Dropbox on my Mac, so now I have this Dropbox folder in my home directory. I only have the free plan (2 GB), so I can't just throw all my files & directories in there. I ...
0
votes
1answer
16 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

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
1answer
330 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
41 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
1answer
110 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
1answer
631 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 ...
0
votes
2answers
162 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 ...
0
votes
1answer
140 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, ...
0
votes
1answer
104 views

Ubuntu 10.04 Windows2003 adding a route for GPO assignment

I want the PC's that receive IP from my Ubuntu DHCP3-server to be able to retrieve the GPOs that are on my windows 2003 server. I'm using virtualbox and 3 virtual machines: 1 windows 2003 server ...
0
votes
3answers
1k views

How to make bash aliases available as linux commands?

I have many bash aliases on a remote location. But when I try to run those from my local linux box, I get the 'command not found' error. e.g. $ ssh root@remote 'status' bash: status: command not ...
0
votes
1answer
88 views

alias: extract options from command

Apologies for the bad title. I couldn't come up with a better one. I want to alias a command to another command, and extract options from the text of the command itself. I realize this is unclear, ...
0
votes
1answer
28 views

Sharing remote folder in subdir

I want to use a remote shared folder use in a subdirectory. For example the share \somePC\folder => x:\folder\somePCsRemoteFolder is there an easy way to do this ? endo
0
votes
3answers
680 views

How to make an alias for a folder on a mounted drive?

I use parallels to run a windows machine and would love to make an alias in my .profile to make a shortcut to my project folder, but the following alias below dosn't seem to work. alias ...
0
votes
1answer
1k views

Creating IP aliases upon server reboot

I have a server running RHEL 6, and have created multiple IP aliases on it. However, when I restart the server, the IP aliases are gone. I tried to edit the /etc/rc.d/rc.local file to include ...
0
votes
2answers
356 views

Alias for recursive case insensitive search in current directory

How do I set an alias, such as "mysearch", which will search for a string recursively in the directory I'm standing in. It should be as below: mysearch "this table..." = find -type f -exec grep ...
0
votes
1answer
250 views

How to pass arguments to an alias?

I'd like to set up an alias push, which would translate into git push origin ARG1:ARG1. For instance, from the command line, i'd like to push A B and get that translated to git push origin A:B How ...
0
votes
1answer
57 views

How can I check whether Vim has the -p (tabs) option or not?

I would like to figure out in my .bashrc (or one of the files it sources) whether Vim has the -p option available and if so create an alias. Now, that same .bashrc is used on numerous systems ...
0
votes
2answers
137 views

On mac, how to copy a networked folder from a Windows machine?

I can see the (XP) shared folder on my Mac (10.6.8). If I try and drag/drop the folder in finder, I get an alias to it. How do I copy the folder itself?
0
votes
2answers
950 views

OSX: Automagically creating a list of the files/folders on external hard drives, to see what's on them when they're disconnected

I want to be able to see a list of the files and folders on my external hard drives, without having to plug them in first. A program that scans external drives when they're plugged in and keeps a ...
0
votes
1answer
737 views

Create Command line shortcuts in Windows 7

I'm using jsDoc to create documentations for my JavaScript files. The command I use is > java -jar jsrun.jar app\run.js -a -t=templates\jsdoc mycode.js What I want is to create a batch or ...
0
votes
2answers
3k views

Setting a path alias for mysql on Ubuntu, with the XAMPP package

I've installed XAMPP, and now want to set an alias so that I can open the commandline mysql client with just a single command. Right now I have to type /opt/lampp/bin/mysql -u root -p every time. So ...
0
votes
0answers
49 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 ...
0
votes
1answer
21 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
22 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
0answers
33 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 ...