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 trialBojie Jiang
Courses Plus Student 8,221 PointsWhy does the "sudo !!” not ask password?
In the last part of the video, when typing "sudo !!”, it was not asking password. Why? Should all sudo commands ask user’s password for secure? Or cuz the password asked before, so don’t ask again? But if another user now charging my computer and don’t need to input password?
1 Answer
anil rahman
7,786 PointsWhen you use sudo once and enter password it will remember password and not ask you again. I think it will forget though once you quit session.
Sue Dough
35,800 PointsSue Dough
35,800 PointsAnil is right. One thing to mention is its usually tab/window specific. So once you run sudo and type the password in that terminal tab your good to go next time you do sudo. However if you switch tabs and haven't done sudo in the new tab it will probably ask for your password.
Nick Ruiz
18,492 PointsNick Ruiz
18,492 PointsThe instructor mentions this around 4:30 in the video.