how to access android mobile from bash

robert rottermann robert at redcor.ch
Thu May 5 11:13:13 UTC 2016


Hi there,

I have ubuntu 16.04 installed.
when I attach an android device a files browser windows pups up and I can 
navigate trough the files on the phone.
However I would like to download the files using rsync. So I try to access them 
using bash commands.

In 14.10 (15.10??) this could be done using the path:
ls -l /run/user/1000/gvfs
but now this gives a permission denied error (even as root).

listing /run/user/1000 produces the following:

root at chrissy:~# ls -l /run/user/1000
ls: cannot access '/run/user/1000/gvfs': Permission denied
total 16
-rw-rw-r-- 1 robert robert  60 Mai  5 12:36 dbus-session
drwx------ 2 robert robert  60 Mai  5 12:38 dconf
d????????? ? ?      ?        ?            ? gvfs
drwx------ 2 robert robert  40 Mai  5 12:36 gvfs-burn
drwx------ 2 robert robert 100 Mai  5 12:36 keyring
drwxrwxr-x 2 robert robert  60 Mai  5 12:37 ownCloud
drwx------ 2 robert robert  80 Mai  5 12:36 pulse
drwxr-xr-x 2 robert robert  80 Mai  5 12:36 systemd
drwx------ 2 robert robert  40 Mai  5 12:36 unity
drwx------ 3 robert robert  60 Mai  5 12:36 upstart
-rw-r--r-- 1 robert robert   5 Mai  5 12:36 upstart-dbus-bridge.7857.pid
-rw-r--r-- 1 robert robert   5 Mai  5 12:36 upstart-file-bridge.7857.pid
-rw-r--r-- 1 robert robert   5 Mai  5 12:36 upstart-udev-bridge.7857.pid


please advice how to access the android device correctly:
thanks a lot
robert




More information about the ubuntu-users mailing list