In this blog post, we will walk you through the simple process of setting up Termux storage. Termux is a powerful terminal emulator for Android devices, and with the proper storage setup, you can enhance its capabilities significantly. Follow the step-by-step instructions below to get your Termux storage up and running in no time.
Open Termux Terminal
Once you have installed Termux, open the app. You’ll be presented with a terminal interface that resembles a command prompt.
Grant Storage Permissions
To access your Android device’s storage from Termux, you need to grant storage permissions. Type the following command in the Termux terminal:
termux-setup-storage
Press Enter, and a popup will appear requesting storage access. Allow the permission to proceed.
Check Storage Access
To ensure that the storage access is granted successfully, enter the following command:
ls ~/storage
This command will list the available storage directories on your device.
Move Files to Termux Storage
Now that you have set up the storage access, you can easily move files between Termux and your device’s storage. For example, to move a file named “example.txt” from your internal storage to Termux, use the following command:
mv ~/storage/shared/example.txt ~/example.txt
This command moves the file from the shared storage directory to the Termux home directory.
Access External Storage (SD Card)
If your Android device has an SD card, you can access it from Termux as well. The SD card is usually mounted at the “/sdcard” path. To access it, use the following command:
cd /sdcard
You can now navigate the SD card’s contents just like you would in a regular Linux terminal.
Conclusion
Setting up storage access in Termux is a simple process that enables you to seamlessly transfer files between Termux and your Android device. With this setup, you can make the most out of Termux’s powerful capabilities and enjoy a smooth command-line experience on your mobile device. So, go ahead and explore the possibilities that Termux offers with this straightforward storage setup. Happy terminal hacking!