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

CSS

Sudo 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

Though 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 )

James Barnett
James Barnett
39,199 Points

Rhys 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

James 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."

Thank you very much...

Thank you very much...