Where's my phone mounted to browse it from shell? [duplicate]

I think this has two main problems:

  • It won't understand the path mtp://[usb:001,009]/SD%20card

  • It likely won't want to use [, ,, ] etc in the path name - spaces may cause issues as well.

On my system, mtp://[usb:001,009]/SD card/ shows up as this in terminal:

/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C009%5D/SD card

So for your device you will likely have to do:

cd "/run/user/1000/gvfs/mtp:host=%5Busb%3A002%2C004%5D/"

Where:

  • Its in quotes so it can do the name with the space.
  • The 1000 (probably) is User ID - you may have to replace it with ${UID} (or just the value of echo $UID). On some systems it may be the name of the user (so echo $USER).
  • The subdirectories of the mounted MTP device likely will be phone (or Internal storage) and SD card (or just card), depending on your setup.