Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Aidan Pine
Aidan Pine
9,210 Points

Problem with git on windows

Hi there,

I'm currently on the "Processes" section of the "Console Foundations" course. I'm having a problem where a number of the commands that I'm being told to type into the console work using the treehouse console, but don't work on Git Bash on my Windows 10 computer. Here's an example of the error:

$ top bash.exe": top: command not found

By the way, my git version is 1.9.5.msysgit.0

Any suggestions would be super appreciated!

Aidan

4 Answers

Aidan Pine
Aidan Pine
9,210 Points

Haha, yes! It would appear to be that way, right? It comes up in the first video of the third module of the the Console Foundations course (https://teamtreehouse.com/library/console-foundations/processes/processes) and he introduces "top" at 1:10.

I think I may have found the answer though:

"top (table of processes) is a task manager program found in many Unix-like operating systems. " (https://en.wikipedia.org/wiki/Top_(software))

and:

"On Solaris, the roughly equivalent program is prstat. MS-DOS has tasklist and graphical Microsoft operating systems have the Windows Task Manager. IBM AIX has an updating running processes list as part of the topas and topas_nmon commands." (https://en.wikipedia.org/wiki/Top_(software))

If I type "tasklist" I get a roughly equivalent window to the one in the video. There was just no mention in the video that it wouldn't work for Windows or anything.

Thanks again, Nejc.

Well that's good research from you. And thank you for sharing information :) Now I know :) I would normally do the research but I was @work so I didn't have the time to poke around :)

I was thinking in the same direction that this could be Linux specific command :) I normaly use ps -acx for the task listings(Mac User I am).

Good job! You are getting a best answer from me for the research.

Regards,

Nejc

With which command you have a problem exactly?

I'm running GitBash on my Windows and no errors came up so far.

Aidan Pine
Aidan Pine
9,210 Points

Hi Nejc,

Thanks for the reply. The "top" command is the one that gave me the error above.

Aidan

Well to be honest there seems to be a problem with "top". It doesn't exist :)

Could you provide the video link where this command is used?