Home›Termux Setup›How to Give Termux Storage Permission and Access Files
Termux Setup

How to Give Termux Storage Permission and Access Files

How to Give Termux Storage Permission and Access Files

Termux starts inside its private app directory, which is separate from common folders such as Downloads. When you need to read or write files shared with other Android apps, use Termux’s supported storage setup command and review Android’s permission prompt. Storage access does not make every protected Android folder available, and it should not be treated as root access. The steps below keep the workflow simple and explain how to find your shared files afterward.

↓ Verify and Download Termux Android App · Official F-Droid ↗

Complete link verification to access the official Termux F-Droid download.

Request Shared-Storage Access

Run termux-setup-storage in Termux. Android may show a permission dialog; review it and grant the requested access if you want Termux to work with shared files. On recent Android versions, menu labels and permission behavior can vary. If you denied permission earlier, open Android Settings for Termux and review its permissions.

Find the Storage Shortcuts

After setup, Termux creates a storage directory in your home folder with convenient links to shared locations, commonly including Downloads and DCIM. Use ls ~/storage to inspect the shortcuts available on your device, then navigate to the folder you need. Your exact contents depend on Android version and granted access.

Copy Files Without Moving Them Accidentally

To copy a text file from Downloads into your current directory, use a quoted path such as cp ~/storage/downloads/example.txt . after confirming the real file name. Use ls to check the destination. Prefer copying before editing important files, and keep backups of data that cannot be recreated.

Understand Android Storage Limits

Android restricts access to some app-private and system locations. A successful storage setup does not grant root access or bypass Android’s scoped-storage model. Avoid commands that recursively change permissions across shared storage, and never run destructive commands on a path until you have verified it with pwd and ls.

Frequently Asked Questions

Why can’t Termux see my Downloads folder?

Run termux-setup-storage and grant access when Android requests it, then inspect ~/storage.

Does the storage command root my phone?

No. It requests shared-storage access for the Termux app; it does not root Android.

Can Termux access every folder on Android?

No. Android protects certain app-private and system directories, and permissions vary by OS version.

Official reference: Termux installation notes on GitHub. Use the download button above to open the official F-Droid listing.

Safety note: Termux is a powerful command-line environment. Only install packages from trusted repositories and review commands before running them, especially when they request elevated privileges, personal data or broad file access.