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

Kristof Szilagyi
Kristof Szilagyi
7,431 Points

ERROR: Garbage option. When I write: ps aux | grep "top"

Hi,

On win8 when I write ' ps aux | grep "top" ' to the console it says "ERROR: Garbage option", I am writing pipe character by using Ascii code 179 but I don't think this is the problem. Everything works fine in the console besides ofthis command.

2 Answers

James Barnett
James Barnett
39,199 Points

Windows 8 doesn't come with bash installed which is what the course you are taking is using. So unless you installed bash you have powershell installed which has some similar syntax to bash.

Kristof Szilagyi
Kristof Szilagyi
7,431 Points

Hi,

The problem was that I used Ascii 179 ( │) instead of 124 ( | ). The two characters looked the same in the Ascii table. Now it works fine. Anyway, I keep in mind your comment, it might be useful later. Thank you.