• Skip to primary navigation
  • Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

fast

Chroot Shortcut

by Ulysses · Feb 15, 2020

Here’s a quick way to setup a chrooted environment.

mkdir /helper
for i in proc sys dev; do mount o bind /$i /helper/$i; done
chroot /helper

mkdir /helper for i in proc sys dev; do mount o bind /$i /helper/$i; done chroot /helper

Filed Under: Linux Tagged With: chroot, fast, shortcut

Copyright © 2012–2021