Using LINUX commands in App Inventor. Extension

You will probably need a rooted device.

Alternatively, if you have the patience, you could use Termux.....