Sample Header Ad - 728x90

Create and edit a bash script in an USB connected smartphone

0 votes
0 answers
259 views
The question explains it all. I am using Ubuntu 20.04 LTS. I have connected an android smartphone to pc using USB. Changed directory to internal storage using: cd /run/user/*/gvfs/*/'Internal Shared Storage' And now I wanna create a bash script. Did this: touch test.sh But it says: touch: setting times of 'test.sh': Operation not supported But if I 'ls' again, I see 'test.sh' actually got created. So whatever, I do this to edit 'test.sh' using vim: vim test.sh But got this: cannot open path of the current working directory: Permission denied Doing sudo outputs the same error. Is it possible to do what I am trying to do? Android version is 8.
Asked by SuperNoob (1 rep)
Sep 15, 2021, 12:55 PM