alias with parameters

Posted by dustyprogrammer on Ask Ubuntu See other posts from Ask Ubuntu or by dustyprogrammer
Published on 2011-03-12T20:31:15Z Indexed on 2011/03/13 0:19 UTC
Read the original article Hit count: 322

Filed under:
|
|

I was recently starting to setup my usual alias. I ended up needing to pass more information than my alias originally needed

$ alias runserver = 'python manage.py runserver'
$ runserver 80  // turns out you need sudo
$ sudo runserver 80
$ sudo: runserver: command not found

Now as I was writing this i realized maybe the alias isn't set for root. Could that be it?

If not, could someone explain why this doesn't work.

Please and thank you

© Ask Ubuntu or respective owner

Related posts about shortcut-keys

Related posts about sudo