Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Created April 10, 2016 06:57
Show Gist options
  • Save erangaeb/c74fc798dab1c3015f123093814bd957 to your computer and use it in GitHub Desktop.
Save erangaeb/c74fc798dab1c3015f123093814bd957 to your computer and use it in GitHub Desktop.
Chroot command
# structure
sudo chroot <directory> <command>
# directory - jailing directory
# command - execuring command in the jail directory
# example
sudo chroot jail /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment