sudo command not found on Cygwin

Adam picture Adam · Mar 20, 2014 · Viewed 65.6k times · Source

I am currently trying to install and update a few packages on a Windows OS. The only matter is that I am using Cygwin in order to type the commands through a terminal (as I'm aware, I can type in Linux type commands such as cd, ls etc. on Cygwin - I may be wrong). However, when I try to install a package like:

sudo apt-get install paparazzi-dev 

I get the reply:

-sh: sudo: command not found.

Does anyone have an idea as to how I can fix this problem?

Answer

Aimal picture Aimal · Aug 18, 2014

Run cygwin as administrator.. then you wouldn't need any sudo command.