Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have used mkalias suggested here

by typing

mkalias untar "tar -xvzf"

but it says

-xvzf not found

Why ?

share|improve this question
up vote 4 down vote accepted

The function posted in that other answer has a bug. The line

alias $1=$2

should read

alias $1="$2"

The answerer remembered to quote the second argument in the line that inserts the alias into your bashrc, but forgot to quote it when activating the alias for the current session.

share|improve this answer

You must log in to answer this question.