In my .bashrc, I want to put something like this.

alias lst='ls &'

So that I can do something like this.

$ lst /tmp

which will be translated into

$ ls /tmp &

How can I do the above?

link|improve this question

8% accept rate
feedback

1 Answer

Use a function instead.

lst() { ls "$@" & }
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.