Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.