Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am trying to install the python-brisa framework on Linux. When I try to use the sudo command, it gives me the error "command not found".

I am running the following commands:

$ cd file
$ sudo python install

What am I doing wrong?

share|improve this question

migrated from Jan 31 '11 at 21:49

This question came from our site for professional and enthusiast programmers.

just cd file then enter, and after that you can run the sudo command. – Aif Jan 31 '11 at 19:30
which linux are you using, some distro's use su instead of sudo – Jesus Ramos Jan 31 '11 at 19:32
I am using Cygwin – Anonymous Jan 31 '11 at 19:33
Looking at the last question posted by the OP, it looks like the OP is on Windows? Have you installed linux? This question should be moved to another stack exchange site as this isn't programming but administration. EDIT: OP added comment before I finished mine =) – Quaternion Jan 31 '11 at 19:35
yes...i installed linux -cygwin for windows so that I can run my code on windows also. – Anonymous Jan 31 '11 at 19:36

You cannot use sudo on Cygwin. Cygwin is restricted to the rights of the security context in which it is executed.

You likely don't need superuser rights to install the package. Simply run the command without sudo and it will probably work.

If you truly need administrator rights, you will need to right-click on the Cygwin icon and choose Run as administrator to run Cygwin with administrative privileges.

share|improve this answer

Patches is right of course, there is no "sudo". But you can make one as shown by answers to many other similar questions. For example this answer. Personally I use an alias:

alias sudo="cygstart --action=runas"

Works as a charm for external programs (not shell built-ins, though):

sudo chown User:Group <file>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.