If you jailbreak your iPad, there are tweaks that add real multitasking support and you can use a terminal. If that's not something you want to do, there's always the (very slow but really cool) https://ish.app/ that's an x86 emulator coupled with a syscall translation layer (like wine) so you can run lotsa Linux stuff on iOS.