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 Console Foundations Processes Killing Processes

Alexis Leblanc-Isabelle
Alexis Leblanc-Isabelle
9,558 Points

Can't find the process "top"

Hey, i'm working with the console and I'm having difficulties with the ps aux | grep “top”. Like Jim show in the video, i'm opening a new tab in the console in which I run top. Then I go back to my first tab and run the command ps aux | grep “$pattern”. The problem is that it seem to be looking only in my current tab and not in the second one. The output I receive is this: 1001 1906 0.0 0.1 8096 936 pts/1 S+ 21:36 0:00 grep --color=auto "top"

In the video, Jim see the "top" running in the second tab and can use the ID to kill the process ...

What am I doing wrong ?

Thanks !

1 Answer

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Did you quit top in tab 2? if you did run it again and don't quit it, quitting will cause the problem you have.

Alexis Leblanc-Isabelle
Alexis Leblanc-Isabelle
9,558 Points

As I know, top was still running the the tab 2.