DEV Community

Zen
Zen

Posted on

How to add new command in Termux?

Type this:

cd
Enter fullscreen mode Exit fullscreen mode

Then:

cd ../usr/bin
Enter fullscreen mode Exit fullscreen mode

Now, create new command. Example:

touch download
Enter fullscreen mode Exit fullscreen mode

Give root access:

chmod +x download
Enter fullscreen mode Exit fullscreen mode

Edit:

nano download
Enter fullscreen mode Exit fullscreen mode

If you don't have nano, install it:

pkg install nano
Enter fullscreen mode Exit fullscreen mode

After edit, save.

Top comments (0)