There is an extension called KIO4_Terminal that can run bash see Using LINUX commands in App Inventor. Extension