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 Processes

Traci McGrew
Traci McGrew
2,559 Points

Ps not showing itself in Mac terminal

Practicing what is shown in both the treehouse console and my own terminal on OS X Yosemite (10.10.2) Video said ps always shows itself in the list when run. It did on the treehouse console but not on my own Mac's terminal. It just showed bash.

2 Answers

Have you tried using

echo $PS1

?

Traci McGrew
Traci McGrew
2,559 Points

My comment/question was in reference to the video "Processes" under the section "Processes" in the "Console Foundations Course". It was posted on that page's video. Often it is mentioned that terminals may be configured differently (ex: what the prompt itself says, colors on screen, etc.) but in this video when he first showed us how to run the a process using ps he said it 'always lists itself'. I was just saying that it does on the treehouse console but not when I tried it on my Mac. It showed other stuff just not itself. I can however access its value using your suggestion and it is a helpful way to do it. When I posted the comment on the bottom of the video I didn't realize it would not only show up there, but out of context as well in the big 'recent comments' from all videos and all recent comments.