Hello, Konstantin touched on Cyanogenmod, which I think would be your best bet for having a more open OS (and ability to interact with CLI I would assume), however, I don't think it's yet supported for the Samsung Galaxy Tab 2 (see the list here: http://get.cm/). Perhaps communications with with the Cyanogenmod devs would yield more fruitful advice?
-Chris