Termux-app: How do we access files from outside Termux (f.e. with TouchVim)?

Created on 29 Dec 2017  路  13Comments  路  Source: termux/termux-app

I'd like to use VimTouch to edit files that are in my Termux home folder.

I tried to make a symlink in my storage pointing to a folder in Termux, but that seems restricted by Android.

I also tried moving the folder to storage, in order to link from Termux to the storage location, but the folder I'm interested in has internal symlinks, and storage doesn't support creation of symlinks.

Basically what I have is a src folder in ~ that contains git repos, and these repos are Node.js projects which contain symlinks inside node_modules, and they simply won't work outside of Termux.

Any ideas how to edit in these projects using an external app?

Most helpful comment

the termux default folder with rooting or atleast copy the files out

?

Non-root access to $HOME with FX File explorer:
01

02

All 13 comments

I had similar problem and FAT32 SD-Card doesn't supoort symlinks so to complete my work I have been using SSH server to access files from $HOME folder and it works fine.

There is .bashrc file under your termux home directory.

Its really usufull to acess my external sd card. Works and tested on Android Lolipop.

I'd like to know too; the last two comments are for the other way around; I'd like to be able to edit a file inside the termux directory from another Android app (think Quickedit Pro or something).

Having the same issue. Any help?

@aquatix you can use the text editor of SE FILE explorer to edit Termux files it work fine for me, the only issue is you've to create your file first off all with termux then edit with the text editor of SE FILE EXPLORER

@dany-micheal And how do you access /data/data/com.termux/files/home from SE Explorer or Solid Explorer without root? As far as I know and can see, that directory is private for the termux app. Otherwise it would be the/a solution indeed :)

@aquatix till now the only way i seen to access this directory with a file explorer is to root your device then in the menu of SE Explorer click Root Explorer

@aquatix i just tried a news tips and it's working fine for me.
follow this tips to Access shared and external storage in termux
https://wiki.termux.com/wiki/Internal_and_external_storage

then with the command 'cp -R ' you can copy and paste in 'storage' the termux directory you want to have access

let me know if it's work for you

Please help how can I move files into the termux default folder with rooting or atleast copy the files out and Change the folder of termux

the termux default folder with rooting or atleast copy the files out

?

Non-root access to $HOME with FX File explorer:
01

02

Closing issue as access already possible through SAF-capable file managers.

Was this page helpful?
0 / 5 - 0 ratings