T O P

  • By -

AutoModerator

Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start. I would like to remind that due to extremely high interest of certain parties in using Termux for violating personal rights and privacy and other kinds of nefarious usage, we chose to prohibit topics about hacking, phishing, fraud, other methods of digital threats and cyberstalking and their precursors such as OSINT or Kali Linux. This is stated in /r/termux subreddit rules. No exception for educational purposes and pranks made. We also won't consider "legends" about lost or stolen accounts and urgent need of their recovery through Termux. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build. Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*


AbderrahimONE

if the file you are trying to excute isn't in termux directory it shows premission denied, you can just move it (or copy it) to some directory in termux (like ~/codes/ dir)


Jeeezzzzzaaa

And where exactly is this termux directory? What does the '~' mean. Sorry pretty new to terminal.


AbderrahimONE

this '~' means the home dir of termux, same as '$HOME'. the dir I suggested is just an example to where you want to save your code. also to check the storage access run 'ls ~/' and look for folder called 'storage' (or run termux-setup-storage directly 🙃)


DutchOfBurdock

with your cd /data/data/com.termux, just do `cd` and it'll take you $HOME `~`


Feer_C9

I know if you try to execute code on an SD card it wont let you Could it be that you're accessing the directory through /storage/emulated rather than the normal /data/data/com.termux?


Aliwnityy

Simply, the file doesn't have execute permissions, this means you can't "run" it. To fix, simply "chmod +x filename" +x means "+execution", you can write it with numbers, wich i can't remember, it's easier with letters "chmod +rwx filename" it gives read, write, execute permissions. TL;DR chmod +x filename


AbderrahimONE

actually it's already has access 0770


kritomas

It has to be in Termux's private data directory (/data/data/com.termux/, ~ is in this directory). Then you have to give it executable perms with chmod.


rob2rox

give the compiled file permissions to execute using chmod +x


slowertrwa

Termux dont have permission on system file you should run on termux file