I am unable to access com.termux/files folder. I want to access it because I want to do a change in writer.js files.

I tried cd.. and cd - codes to go back to files folder from home folder.

  • Does opening Termux and cd .. work? – iBug Apr 3 '17 at 14:44
  • No it doesn't work – rohit singh Apr 4 '17 at 5:07

In order to get to the Termux files folder, you have to CD to the entire path name like this.

cd /data/data/com.termux/files

From there can cd into the usr folder and where ever you want to go. Once you find writer.js you can edit it using nano which comes with Termux. Enter nano writer.js, make your edits and the use CTRL O to save it and CTRL X to exit nano.

Then you can get back to your home directory with:

cd ~
  • Hey Thanks for your help but can u tell me how can i open writer.js file in termux after into a certain directory.I want to edit writer.js – rohit singh Apr 4 '17 at 1:56
  • @rohitsingh Get a text editor like vim or emacs. – iBug Apr 4 '17 at 2:10
  • How to install them – rohit singh Apr 4 '17 at 5:08
  • How to install them and how to open writer.js with them. By the does it work on Android – rohit singh Apr 4 '17 at 5:09
  • @rohitsingh Mine may be a stupid question, but here goes: why don't you move the file you wish to edit inside your internal storage, edit it with a GUI editor and put it back where it was? – Death Mask Salesman Apr 4 '17 at 23:00

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.