0

I have a Samsung Galaxy Tab 2 (actually, many of them) and I need to regularly push some files inside the external physically removable SD card of my tablets.

Android handles internal and external storage as follows:

/storage
  ├ emulated/0/ /* this is the internal storage partition */
  └ 9102-ABF4 /* this is the external removable SD card partition */

I thought I could find this path by browsing to the folder which is not named /emulated inside /storage since the other one is the one I want.

I want, using device's shell through adb, to navigate to (using command cd) a directory that I don't know the path of (9102-ABF4 written above, located inside /storage/)

New contributor
puffo is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • what is your question? cd /storage/????-????? – alecxs Aug 14 at 10:44
  • @alecxs I want, using device's shell through adb, go (using command cd) inside a directory that I don't know (9102-ABF4 written above, located inside /storage) – puffo Aug 14 at 10:48
  • 1
    @puffo The command alecxs presented to you does exactly what you want to do: cd into a directory the name you don't know (but you know the pattern of the directory name). Just try it out. – Robert Aug 14 at 17:33
  • @alecxs You should make an answer from your comment. Using wildcards with cd is a nice trick especially as it should work perfectly for all sd-cards as the pattern is always the same. – Robert Aug 15 at 12:55
  • @Robert i am afraid the question is off-topic so i won't answer - besides this it's not worth it because that are basics in shell coding ;) – alecxs Aug 15 at 13:02

Your Answer

puffo is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.