top command in cygwin?

22

4

I am starting to use Cygwin(64) on my Windows 8 laptop, however, the top command is not recognized. I have read online that I need to get the procps package, but it is not available on the 'Cygwin Setup' package selections. How should I go about installing the procps package so that I can use top?

ps. for whatever reason ps and kill both work so I would think top would be included in whatever package allowed those guys to work, but there is no top command.

drjrm3

Posted 2013-08-10T17:39:13.717

Reputation: 1 164

2Many packages are not yet available for the 64-bit Cygwin, which is quite new, but this will improve over time. I'd stick with 32-bit Cygwin unless you have a compelling need for the 64-bit one. – jjlin – 2013-08-10T18:38:24.017

Answers

24

The procps package is now available for 64-bit Cygwin (as of Nov. 21, 2013) using the most recent setup executable available on the Cygwin site. I just downloaded the procps package from the hoobly mirror and now top is available to me from 64-bit Cygwin on my Windows 8 machine.

See: http://cygwin.com/ml/cygwin-announce/2013-10/msg00009.html

Marianne

Posted 2013-08-10T17:39:13.717

Reputation: 341

8

You need to install the procps package. See here:

procps: Utilities for monitoring your system and processes on your system.

johnshen64

Posted 2013-08-10T17:39:13.717

Reputation: 4 399

Right, I saw that page many times, but it is just text on a webpage. Where is the downloadable source? Even if I download the source, how do I set it up to install without using the Cygwin Setup? – drjrm3 – 2013-08-10T17:57:19.540

there might be a way to install it without using setup, but i do not know it. if procps is already installed in your system and top is not working or cannot be found, you might need to update the package. cygwin uses setup.exe to update/install packages because sometimes even dlls need updating so it has to be done outside the cygwin. – johnshen64 – 2013-08-10T18:21:03.077

6

As in 2017, you should install the package procps-ng to get the top utility.

Chad

Posted 2013-08-10T17:39:13.717

Reputation: 161

2

Unfortunately at this time it seems that procps does not have a 64 bit version from cygwin.

You can use the 32 bit version of cygwin and install procps. That package contains the top command and more system monitoring utilities.

user1820024

Posted 2013-08-10T17:39:13.717

Reputation: 519

1

For those unfamiliar with the cygwin setup program: To download the procps package run the cygwin setup exe and after it finishes searching the mirror it shows the select packages screen. In the View drop down select "full" and in the search box type "procps". Don't hit enter because it will show the matching packages automatically. If the procps components are not installed they will have "skip" against them. Click "skip" and it will offer you an available version. Once you have selected all components you need hit "next" and the package will install. Good Luck

Peter Smallwood

Posted 2013-08-10T17:39:13.717

Reputation: 111

0

When cygwin is installed it asks for packages to include. procps is a package but not part of the default installation. So you can reinstall cygwin and select procps package during installation. This worked for me.

Sugan

Posted 2013-08-10T17:39:13.717

Reputation: 101