DEV Community

loading...

How to add new command in Termux?

mzaini30 profile image Zen ・1 min read

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.

Discussion (0)

pic
Editor guide