Sample Header Ad - 728x90

How to use multibyte file names in adb shell?

2 votes
1 answer
420 views
I have a Galaxy S6 running Android 7.0: zeroflte:/ $ getprop ro.build.version.release 7.0 There exists a file which uses the Unicode codepoint U+1F308 (RAINBOW) in its name: zeroflte:/ $ ls -al /sdcard/tmp total 1024 drwxrwx--x 5 root sdcard_rw 4096 2020-07-09 05:44 . drwxrwx--x 49 root sdcard_rw 4096 2020-06-25 07:27 .. -rw-rw---- 1 root sdcard_rw 17 2018-04-25 20:47 123.org drwxrwx--x 2 root sdcard_rw 4096 2020-07-09 05:54 crypt -rw-rw---- 1 root sdcard_rw 9 2020-07-08 13:26 🌈.gpx zeroflte:/ $ However, I have no idea how to use this file name in an adb shell command. I would like to apply ls -1 -d -l /sdcard/tmp/\🌈.gpx or similar, but I cannot enter the RAINBOW char. Any idea how to do this?
Asked by Michael Albinus (121 rep)
Jul 9, 2020, 10:59 AM
Last activity: Dec 28, 2020, 02:38 PM