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 Getting Started with the Console Moving Around the Filesystem

Martin Enderleit
Martin Enderleit
3,015 Points

$ not working in Treehouse console

I can't type $ in the treehouse console (or any other chars using ALTGR). I'm on Windows 10 using chrome and a Danish keyboard. Is there a way to setup the charset, or another way to fix this?

1 Answer

Sue Dough
Sue Dough
35,800 Points

This isn't a Treehouse issue. You need to escape the dollar sign. If it works in WIndows, that wouldn't surpise me as there stuff isn't standard. $ signs need to be escaped to work in Unix.

If you had a file named

money$.txt

Then you would have to escape it like this:

cat money\$.txt

or you can escape it like this with single quotes on both sides.

cat money'$'.txt

the cat command simply concatenates files and prints them. ( basically just views files ). The cat command is irrelevant but what matters is that slash goes before the dollar sign. You can also try single quotes on both sides.

Cheers