What are `/etc/passwd` and `/etc/shadow`?

BeginnerConceptLinux and shell
Answer

/etc/passwd lists users (name, UID, GID, home, shell) and is world-readable. /etc/shadow holds password hashes and ageing, readable by root only.

All Real-World Interview questions Roadmap: Interview readiness

More on Linux and shell