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 trialRam Iyer
9,116 PointsCannot find PS1 in Ubuntu
I am currently using Ubuntu Linux 14.03 and I am running all of the commands in the Console course on my own computer. Everything was well until this particular command 'env'.
I am supposed to get a response with a row containing "PS1" that defines the format of the command line, however I am getting no such row.
Using ' env | grep "PS1" ' returns nothing. Could someone please explain why this is?
Thank You for showing interest.
2 Answers
Shane Robinson
7,324 PointsTry typing out just 'env' and see if anything is output in the prompt. If it does give you output then env is working there just isn't any environment variables on your computer with "PS1" in it.
Ram Iyer
9,116 PointsEven when I type just 'env' I am not getting an output of PS1.
However when I type 'echo $PS1' I get '[\e]0;\u@\h: \w\a]${debian_chroot:+($debian_chroot)}\u@\h:\w\$'
Why does PS1 not show as an environment variable then?
J P
221 PointsHaving the same problem but in the treehouse console. Anybody know why?
john larson
16,594 Pointsjohn larson
16,594 PointsSame thing for me. Anyone resolve this? I'm using bash on windows 10. I'm guessing this issue has to do with versions of bash or something. But I am pretty clueless about this stuff. If it is a version thing, Id like to know how to work around it.