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 trialAbacus Bosnia
459 PointsSudo Class
What's difference betwen sudo-class and pseudo-class? Like: a:hover a:link a:active a:visited
When we use sudo(pseudo) classed outside css?
3 Answers
rayorke
27,709 PointsThough the words are phonetically the same, they have different definitions.
pseudo-class is used in CSS as a keyword that designates a special state of the element to be selected ( :hover
:visited
, etc )
sudo is a command used in UNIX-like operating systems (GNU/Linux, Apple OSX, BSD, etc.) that allows a user to run a program with alternative security privileges ( normally the superuser )
Abacus Bosnia
459 PointsThank you very much...
Abacus Bosnia
459 PointsThank you very much...
James Barnett
39,199 PointsJames Barnett
39,199 PointsRhys Yorke -
>
POSIX operating systems (Linux, Mac OS, etc.)A better term here would be Unix-like, as Linux is not POSIX compliant also BSD isn't either, the OS on which much of OS X is based. OS X became an official licensed UNIX as of version 10.5, so it's been POSIX compliant since that time.
Further reading: https://en.wikipedia.org/wiki/Unix-like
rayorke
27,709 Pointsrayorke
27,709 PointsJames Barnett, I don't think it's necessary to get in to specifics at this point. I was illustrating the idea that it was not Windows
Even Jim Hoskins states in his Console Foundations course when pointing out the similarities between Linux, BSD, Darwin:
"In fact, there is a standard that these operating systems share with each other called POSIX, or portable operating system interface."