Skip to content

Instantly share code, notes, and snippets.

@syncsynchalt
Created April 30, 2013 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syncsynchalt/5492239 to your computer and use it in GitHub Desktop.
Save syncsynchalt/5492239 to your computer and use it in GitHub Desktop.
For josh
# cd /tmp
# mkdir proc
# mount --bind /proc /tmp/proc
# mkdir dev
# ln -s /proc/self/fd/0 dev/stdin
# echo 'date' | chroot /tmp /bin/bash -c 'source /dev/stdin'
Tue Apr 30 21:54:05 UTC 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment