What is Termux App? How To Use Termux? Basic Commands of Termux for Beginner.

What is Termux?

Termux is an Android Emulator and Linux Environment App. It is a minimal base system is installed automatically. It works with no rooting and additional setup. We can add additional packages to the Termux by APT packages. Termux doesn’t have a fancy interface like other apps have. It has a simple interface with text mode support i.e. minimal base support.

Termux is an Alternate of the Kali Linux OS that is used by hackers. So you don’t know about Kali Linux, Then you are too far from being a hacker.  Termux is also said as the Kali Linux of poor people. We know everybody can’t purchase a heavy system( Computer or a laptop). For those Termux, a Linux-based Android platform where they can learn penetration and hacking.

How To Use Termux?

Termux is a command-line android application. So to operate Termux you must be comfortable with the command line and to install the packages in Termux. Termux doesn’t give us an attractive lookup and we don’t have any button or menu bar to operate Termux. There are lots of commands which are used to operate Termux. But here in this article, I will talk about some of the important commands that are specially for Beginner. After learning these commands a beginner/fresher can easily run Termux.

How To Download Termux?

Termux is an open-source android application. So it is free to use. Anyone can download and use Termux without payment. We can directly download it from the Play store. You can also download the form link given below.

Download= TERMUX click here

Most Commonly Used Termux Commands

Navigation Commands

  • && – It’s, not a technical command but it can be used to run multiple commands at a time. Just put this command in the mid of all other commands. For eg. [command] && [command2]. Both commands will run at the same time, first command1 will show its output then command2 will be executed.
  • cd – It is used to change the current directory.
  • clear – It clears the terminal screen.
  • ls – displays or list the all items of the current directory.
  • man — displays the guide or manual of the command. For eg. $man ls [ displays the guide about what is ls command and how to use this command ]
  • pwd – displays the absolute path of the current working directory.
  • cd .. -It changes the current directory to the parent directory

File Management commands

  • cat —  It is used to display the content of a single file. For eg.
$cat linuxkings.txt
  • cp — makes a copy of the file. For eg.
$cp linuxkings.txt [path of the file where you want to copy it]
  • mv — moves the original file from one directory to another directory. For eg.
 $mv linuxkings.txt [path of the file where you want to move]
  • find — finds the exact match in the entire system or directory or file from the given query.
$find root
  • locate — It displays all possible output of a particular query in the entire system or directories. For eg.
 $locate root
  • rm — used to delete files/directory with certain parameters. It is used to delete a single file as well as multiple files.
$rm -rf linuxkings.com
  • mkdir — used to create a directory. For eg.
$mkdir linuxkings.com
  • nano/vim — Nano and Vim are the editors, used to edit the file. Nano is suitable for beginners because vim is a very complex editor to use. For eg.
$vim linuxkings.com
  • touch — used to create empty files with certain parameters. For eg.
$touch linuxkings.com

User Management Commands

  • whoami – displays the currently logged user.
  • who — also displays the currently logged user.
  • who -a — displays info about all users currently logged in.
  • ps — displays info about currently running processes.
  • kill/kill all -kill a single process and all processes running in the entire system.
  • useradd – adds a new user.
  • userdel – deletes user already created.
  • groupadd – adds a new group.
  • groupdel — deletes the group already created.
  • chown — changes the owner of the file/directory.
  • chmod – change the permission of the file like read, write, and execute for the users.

System Management Commands

  • df — displays the available space and used space on the system.
  • du — displays the block size of a file or directory
  • free — displays the  RAM space, used, and free space of RAM in the system.
  • ipconfig – displays the IP address of the system.
  • history — shows the commands history that has been used.
  • pkg — install packages directly from the APT repository.
  • uname — displays the core system information.
  • uptime — displays time elapsed since last boot.
  • cat /proc/meminfo — show memory-related info.
  • cat /proc/cpuinfo  –show CPU information

Where is the Home Directory of Termux?

All data of Termux home directory stored in  /data/data/com.termux/files.

How To Install Package in Termux?

In Termux it is recommended to use package manager pkg which is a wrapper for apt. It simplifies installing or upgrading packages by automatically updating apt lists so you don’t have to type apt update when installing or upgrading packages

Steps To Install packages-

  • Install Packages
pkg install [ package name]
  • Uninstall package
pkg uninstall [package name]
  • Upgrade Termux Packages
pkg upgrade
  • Update Termux Packages
pkg update
  • List all packages of Termux
pkg list-all
  • After Installing Termux, Install Official Repositories of Termux
pkg install root-repo
pkg install unstable-repo
pkg install x11-repo

Friends this is all about Termux that a beginner must know. Here I described, What is Termux? How to use Termux, and the Basic commands to run Termux, and many more about Termux.

So, friends, still if you have any doubts or any queries on this post, do not hesitate to contact me. If you like our post, then share it with your friends. And if you have any suggestions for me, please write to me in the comment box.

12 thoughts on “What is Termux App? How To Use Termux? Basic Commands of Termux for Beginner.

  1. Thanks Engineer Am one of the students who benefit your articles.
    Just I am so interesting to read the passward of messenger easily with out changing the passward.
    I’d wanna to feel my lady.
    Plz help me that plz.

    Like

Leave a comment