Termux And Its Basic Commands

Termux And Its Basic Commands


Termux is a free and open-source terminal emulator for running a Linux environment on an android device. Pre-installed packages and command-line interface of termux , make it very familiar for Linux PC users. Moreover, one can use and work on different languages such as PHP, Python, Shell Script, etc. by installing the required packages at first.

How to install termux?

As it is said above that, termux is free and open-source, so we can easily download and install it from playstore.

Termux Commands List

As we know that to use any kind of terminal, we have to know its commands and it is also the same in the case of termux as well. Some of the important and basic commands of termux are listed below:
  • Clear Screen
  • clear
  • Changing directory
  • cd
    If you want to move one directory back , then use:
    If you want to move two directories back , then use:
  • Creating a directory
  • mkdir [new-directoy-name]
  • Deleting a directory
  • rmdir [directory-name]
  • Creating a file
  • touch [file-name]
  • Moving a file
  • mv [old-file-location] [new-location]
  • Copying a file
  • cp [filename] [new filename]
  • Deleting a file
  • rm [file-name]
  • Downloading/Installing any packages
  • pkg install [package-name]
  • Updating Package
  • pkg update
  • Upgrading Package
  • pkg upgrade
Anonsagar Founder of Tritech and creator of "Anonsagar Cyber " blog that you are currently previewing. Through this blog and youtubechannel, my attempt is to teach basics and those coding techniques to people in short time which took me ages to learn. 6 min read