What are cgroups and namespaces?

AdvancedConceptLinux and shell
Answer

Namespaces isolate what a process can see (PID, network, mount, UTS, IPC, user, cgroup). cgroups limit what it can use (CPU, memory, I/O, PIDs). Together they are what a container is.

All Real-World Interview questions Roadmap: Interview readiness

More on Linux and shell