DEV Community

Cover image for Getting Started with TERMUX 📲

Getting Started with TERMUX 📲

John Johnson Okah on July 20, 2023

Have you ever been stuck with just your phone on a bus or in a boring environment and all you could think of is getting right back to your Dev envi...
Collapse
 
hbtjr1275 profile image
Janell Thornton

It's great and flexible so I have my distro on my android devices.

Collapse
 
jjokah profile image
John Johnson Okah

Oh yeah, it is.

Collapse
 
hideandseekstheorder profile image
hideandseeks-hub

nice

Collapse
 
procyon108 profile image
Joseph Gant (Joe) • Edited

Thank you for this. Ive been using linux for a long time on my PCs and servers but Android development is new for me. I'm working on Android 10. It's a Chinese release supporting a DAP, so Im extara lost.
Is Termux still confined to its own app space on Android 10 only when writing to the external card, or is the internal storage sandboxed as well?

Edit: typo

Collapse
 
jjokah profile image
John Johnson Okah

Termux isn't confined to its own app space.
The app-specific directory /data/data/com.termux/files/ has unrestricted read and write access.
Other storage (like ~/storage/shared/) can still be accessed — with some restrictions.

Collapse
 
viliyam2811 profile image
Viliyam Vasava

In Your Phone File Manager you can access the path as External SD Card/Android/data/com.termux/files which is linked with ~/storage/external-1 in Termux. This is the path that Termux has full access with all Read & Write permision for External Storage.

First run termux-setup-storage to get access of ~/storage/external-1

Now you can create files by running.

touch ~/storage/external-1/hello-world.py

Check if file is created on External Storage or not in

External SD Card/Android/data/com.termux/files

Image description

I am also using Termux on
Android 10. The problem you are facing in not about Android 10.

Termux gives access to external storage with some limitations external storage like mirco sd card or usb storage you can read but cannot write to all files.

Collapse
 
with_out_sugar profile image
Info Comment hidden by post author - thread only accessible via permalink
Ramas Something

hello why in termux when using the command "bash mkdir black_city, here as an example" it shows that execute binary file, and in general, when trying to create anything, it shows that there is some kind of error with binary files

Collapse
 
viram profile image
viram

how to use termux

Collapse
 
with_out_sugar profile image
Info Comment hidden by post author - thread only accessible via permalink
Ramas Something

Tai niekas atsakymo nežino?

Collapse
 
with_out_sugar profile image
Info Comment hidden by post author - thread only accessible via permalink
Ramas Something

What is?

Collapse
 
vendo profile image
Ven Jon

What's the main purpose of Termux

Some comments have been hidden by the post's author - find out more