Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

How to start with Termux – Beginner to advanced

You want to learn Termux, in this guide we are going to see how to start with Termux for ethical hacking.

Termux is a powerful Android app that you can use for Ethical hacking. With the Termux App, you can install several Apps for hacking which you can even find on Kali Linux such as hydra, Nmap, Sqlmap…

In the previous article, we discussed how to hack with your smartphone using Termux in that article we discussed why to use Termux and how to start, I recommend you to have a look at it if not yet done

termux for ethical hacking

Accessing and managing files on Termux

Well, now let us see how we can manage and access files in Termux. There are three main types of storage in Termux.

  • Internal storage: files in $HOME, available from inside Termux or when explicitly in a SAF-compatible file manager.
  • Shared storage: general-purpose file storage available for all applications. You need to grant Termux storage access permission to use it.
  • External storage: external SD cards or USB hard drives. Typically read-only, except the Termux private directory.
termux files

Full read-write access to external SD cards and USB drives is available only on rooted devices. For those who are curious why some applications can write on external storage without restriction: these applications use special APIs (Storage Access Framework) not available for command line applications.

Also, Shared storage, as well as external storage, is not suitable for installing software. Do not even try to move Termux directories like $HOME or $PREFIX onto this kind of storage.

Access shared and external storage

Then, to access shared and external access storage you need to run termux-setup-storage. You will then be prompted to “Allow Termux access photos, media and files on your device”, which you should allow.

allow storage termux

Also, If you have Termux: API application and termux-api package installed, you can use Android file picker to get any file from either shared or external storage by using a utility termux-storage-get.

you may like also how to install Tool-X on termux.

Access Termux from file manager

You must know that also You can access the Termux home directory ($HOME) from the file manager using Storage Access Framework and are capable of accessing drives like USB or external SD-card in read-write mode.

access termux from file manager

Also, use ls to show the directory content, if you want to change the directory. Eg: cd $home. Then, use also pwd to display the path of a file or directory, and use cd/sdcard if you want to access your memory card.

Text Editor

Now as we have seen how we can access and manage files on termux, let us see text editor on termux. Also, in my previous article, we discussed the differences between termux from Linux, you can have a look at it if you are curious.

Now probably a text editor is a system or program that allows a user to edit text. Also, it is a type of program used for editing plain text files. Here is a list of some text editors on termux.

  • Nano: is a small and friendly editor. It copies the look and feel of Pico, but is free software, and implements several features that Pico lacks, such as opening multiple files, scrolling per line, undo/redo, syntax coloring, line numbering, and soft-wrapping overlong lines. You can install it using pkg install nano
Nano text editor
  • Vim: Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as “vi” with most UNIX systems and with Apple OS X. Also, you can visit the vim Homepage: https://www.vim.org/
vim text editor

Also, for further information, you can visit https://wiki.termux.com/wiki/Text_Editors

Networking on Termux

Now let’s discuss a little about networking on termux. Networking is the exchange of information and ideas among people with a common profession or special interest, usually in an informal social setting. Also, Networking often begins with a single point of common ground.

Ifconfig is used to check everything related to your Ip address. Also, the command Ping help to check any website IP address. Example: ping “name_of_web_site”, ping www.google.com

Also, Termux gives the possibility of accessing the internet using w3m. Then, the command Pkg install w3m is used to install w3m for accessing the internet on termux. Example: w3m “website address”, w3m tgeniusclub.com         

Additionally, the command Pkg install lynx is used to install lynx, but they are having the same functionalities like w3m, type lynx “website”

Installing python on termux

Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python’s design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

when it comes to installing python on termux, there are 2 choices: either you install python 3. x or python 2.7.x. Then, let us see different ways to install python.

First, to install python 3. x open termux and type Pkg install python. Now, this command will install python 3. x on your termux and will be ready to be used.

Python 3 on termux

Lastly, to install python 2.7.x, open termux, and type Pkg install python2. Now, this command will install python 2.7.x on your termux and will be ready to be used.

python 2 on termux

Warning: upgrading major/minor versions of the Python package, for example from Python 3.8 to 3.9, will make all your currently installed modules unusable. You will need to reinstall them. However upgrading patch versions, for example from 3.8.1 to 3.8.2, is safe.

The programming language on termux

Termux is often used for software development, and information science education. Also, you might be surprised that almost all languages are usable on termux. Termux is such a powerful Linux environment that can handle the above Programming Languages.

  • C
  • C++
  • Python 3.x
  • Python 2.7
  • Ruby
  • Perl
  • PHP

Also, use this command: Pkg install clang it’s used to install c & c++, During installation, it will ask you if you allow termux to use the same space in your phone hint “y” then enter

You may like also Best android apps termux learner from play store

Also, if you want to install PHP using this command: pkg install php.


6 Responses

  1. 7 January 2021

    […] NetHunter on any stock, unrooted Android device without voiding the waranty. you have to install termux, on termux you can now install Kali […]

  2. 30 March 2021

    […] in the previous article, we discussed Termux for ethical hacking. begigining guide, consider it as a biginnig of termux, i recommend you to have a look at it if not yet […]

  3. 9 June 2021

    […] with the definition of Kali Linux, you can understand what it is, and if not don’t worry we have a complete guide about it. How to start with Kali Linux. Then, in this article, we are going to discuss Kalimux on termux. […]

  4. 2 July 2021

    […] android devices are popular in the world. Imagine how funny if you infect your friend’s device even if you don’t have hacking skills. Infect best Termux hacking tool will help us to do that. Also, if you have never use Termux consider reading Termux for an ethical hacking starting guide. […]

Leave a Reply

Your email address will not be published.