Skip to main content
70 votes

Where is the folder that Termux defaults to?

You don't need to root your device. All you need to do is run the following command on a non-rooted (or rooted) device to allow termux to access your existing directories, particularly /storage/...
J.T.'s user avatar
  • 803
30 votes

Termux - How do I create a directory of files accessible outside of Termux?

From within Termux itself, you can change the current directory to the internal storage, by means of cd /storage/emulated/0 or cd /sdcard followed by enter. After that, create a new directory by ...
Grimoire's user avatar
  • 2,969
18 votes

I'd like to run Termux as root: possible?

The default su from Termux is simple. When run it brings /system/bin/sh for you instead of Termux's shell (typically bash). To solve this issue, you can install the custom su wrapper for Termux by ...
iBug's user avatar
  • 7,757
10 votes

Where is the folder that Termux defaults to?

The default directory is: /data/data/com.termux/files/home. Since Termux supports bash commands, user can run pwd to print current working directory. Note: pwd is an acronym of print working ...
Andrew T.'s user avatar
  • 16k
8 votes

Where is the folder that Termux defaults to?

Provided that you don't want to root your phone, it is possible to change permission for Termux (Settings->Applications->Termux->Permissions) and enable the Storage permission. This way you are ...
Slinky Sloth's user avatar
8 votes

Treble: How do I check if it is enabled on my device?

Works on unrooted devices also Install Termux and run getprop ro.treble.enabled It returns true if your device supports and false if it doesn’t With adb adb shell getprop ro.treble.enabled
beeshyams's user avatar
  • 40.8k
8 votes
Accepted

How to use tmux copy / paste in Termux?

Try having this line in your ~/.tmux.conf file: set-window-option -g mode-keys vi This enables a set of vi key bindings that seems to work fine. I used the Spacebar and Enter keys to copy that line ...
Jacob Wan's user avatar
  • 196
7 votes
Accepted

Password to ssh connec to termux

You need to use the passwd command to manually set one. When invoked dirently, it doesn't ask you for your previous password and just sets a new one: ~ $ passwd New password: Retype new password: ...
iBug's user avatar
  • 7,757
6 votes

I'd like to run Termux as root: possible?

I just solved the same problem for myself. tsu didn't work out for me. I found this project: https://github.com/st42/termux-sudo Also I wanted to run sshd as root. It an out of the box with termux-...
kaefert's user avatar
  • 161
6 votes

Termux write to SD card

Use termux-setup-storage to setup your storage. See https://wiki.termux.com/wiki/Termux-setup-storage for instructions and more information. Write data will be enabled in the Termux private folder ...
S D Rausty's user avatar
6 votes

How to use tmux copy / paste in Termux?

Unfortunately, tmux can't access Android system clipboard, unlike real GNU/Linux distros. The copy mode is pretty much isolated in tmux, so you can only copy from and paste to within sessions. To ...
iBug's user avatar
  • 7,757
6 votes

How to make Termux obtain root access?

First, install the needed packages. pkg install proot proot-distro tsu fakeroot parted Then, go to a new screen in the terminal and type proot -0 login
Anon Uimik's user avatar
6 votes
Accepted

How to grant an app a permission that isn't in its manifest for audio recording?

Not possible without root but even with root SoX recording might not work. Android Manifest Permissions Android permission system has different Protection Levels (1, 2); Normal permissions are ...
Irfan Latif's user avatar
  • 20.4k
6 votes
Accepted

How do I access `$HOME/storage` outside of Termux (with a file explorer)?

If you did termux-setup-storage previously, create random_file.txt file in $HOME/storage/shared. That'll be created on /sdcard/. But you don't need to do that hassle. Just grant Termux Storage ...
Irfan Latif's user avatar
  • 20.4k
5 votes

How to run adb and fastboot commands from Termux?

This question is nearly a duplicate of this which has a detailed answer by @Firelord, except the Termux part. As mention by @DeathMaskSalesman in comment, Termux is more like a Linux environment, but ...
Irfan Latif's user avatar
  • 20.4k
5 votes
Accepted

Wget using Termux download directory

To quote Izzy, wget usually downloads to where you called it from – unless told otherwise using the -O parameter. So you either first cd to the desired directory – or try something like wget -...
Grimoire's user avatar
  • 2,969
5 votes
Accepted

Insufficent rights for npm install in Termux on Android

WARN tar EPERM: operation not permitted, futime indicates that futime syscall (used to change file last access and modification times) fails with error: EPERM. From utime manpage 1: EPERM ... the ...
Irfan Latif's user avatar
  • 20.4k
5 votes
Accepted

Is it possible to install Docker using Termux?

March 2021: Possible with root & compiled kernel From termux-root Issue #60 it appears that it is possible to use Docker without QEMU, but requires root & a custom kernel. Details can be found ...
Morrison Chang's user avatar
5 votes
Accepted

Remove Termux's extra keys

add the following line to the ~/.termux/termux.properties file: extra-keys = [] apply the changes by running (or restart Termux): termux-reload-settings
gregrwm's user avatar
  • 121
4 votes

Run C-executable from SD card on Termux

Finally I got it to work. Programs can only be run if they are located at the home directory of termux. That is, run pwd to know where the home directory is and put the source files there, then ...
nopeva's user avatar
  • 161
4 votes

Use GCC compiler in Termux?

This is a very interesting solution. First download GCC for C4droid from Google Play. Go find its apk under /data/app/com.n0n3m4.gcc4droid-#, take the APK and extract /assets/gcc.zip. Now extract ...
iBug's user avatar
  • 7,757
4 votes

which termux package provides the "mount" command?

Either type /system/bin/mount manually or create a shortcut by ln -s /system/bin/mount $PREFIX/bin/mount so that you can access it more easily later. Don't bother with toolbox or toybox. ...
iBug's user avatar
  • 7,757
4 votes

Immersive mode in Termux?

I could have sworn immersive mode was a feature of Termux... You can still use immersive mode via ADB (or root, if you have that). Hide both status and navigation bar: adb shell settings put global ...
SSS's user avatar
  • 499
4 votes

How do I view root ( / ) with Termux if termux-setup-storage doesn't help?

termux-setup-storage only grants android.permission.WRITE_EXTERNAL_STORAGE that lets the app access internal SD card i.e. /sdcard. Android's init creates rootfs / with permissions 0:0 (uid:gid) and ...
Irfan Latif's user avatar
  • 20.4k
4 votes

termux: running termux via adb without *any* direct interaction with the device?

Per the comment by Irfan Latif above, the following works: Launch termux Do the following: echo 'sv up sshd sshd started' > .profile Run this whenever I want to start sshd via adb: adb shell am ...
HippoMan's user avatar
  • 715
4 votes

termux: running termux via adb without *any* direct interaction with the device?

adb shell am start -n com.termux/.HomeActivity adb shell input text "your command here" adb shell input keyevent ENTER
Jean Michael's user avatar
4 votes

Is it possible to install Docker using Termux?

in my case (htc u11) it was possible by running (as @Nuninoo said) pkg install root-repo pkg install docker and if docker-compose is also needed it can be loaded via python pkg install python3 pip3 ...
hannes's user avatar
  • 41
4 votes

Termux access /sdcard/data

I believe that you are talking about /sdcard/Android/data instead of /sdcard/data. From what I gathered, this is an intentional "security" feature. It is possible to bypass by root, but that ...
Tada Fireworks's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible