DEV Community

Zen
Zen

Posted on

3 2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more