adb equivalents in shell with root access

For the benefit of others experiencing the same issue and arriving at this subject via Google and Co., here are some on-the-phone equivalents to running adb command on the PC:

Always start by getting a root shell on the phone:
user@pc$ adb shell
$ su –
#

To remount /system read-write (adb remount):
# mount -o remount,rw /dev/block/mtdblock3 /system

To uninstall an application (adb uninstall):
# rm /system/app/PackageYouNoLongerWant.apk
# pm uninstall package.you.no.longer.want

To put a file somewhere other than the SD-card (adb push):
Put the file on the SD-card as usual.
# mv /sdcard/file /where/you/want/to/put/the/file

Taken from this helpful post: link

 

A more detailed, and useful post given that a /dev mappings are not static:

Check how the /system partition is mounted as read-only (ro), In particular note the device

# mount | grep system

/dev/block/stl12 /system ext4 ro,relatime,barrier=1,data=ordered 0 0

Remount the partiton in read-write mode (rw)

# mount -o rw,remount /dev/block/stl12 /system

Finally check if it was mounted in read-write mode (rw)

# mount | grep system
/dev/block/stl12 /system ext4 rw,relatime,barrier=1,data=ordered 0 0

When done, do not forget to remount it read-only again, for safety reasons, obviously

# mount -o ro,remount /dev/block/stl12 /system

 Found in this post