Linux: chroot Command Examples To Fix System

529

I am a new Linux and Unix user. How do I change the root directory of a command? How do I change the root directory of a process such as web-server using a chroot command to isolate file system? How do I use a chroot command to reset a forgotten Linux password, reinstall the bootloader, jail apps and more? 

Read more: Linux and Unix chroot command examples