Briefly about the main thing: what is Termux

Termux is an Android terminal emulator and Linux environment application that works directly without the need for rooting or configuration. The minimal base system is automatically installed – additional packages are available through the APT Package Manager.

In short and roughly something, Termux is a console that is in your services.

By default, Termux has a minimal base system. Additional packages are available from the “pkg” package manager (analogous to apt). The application supports extended management with superuser rights and the installation of a special “tsu” package (analogous to sudo). Without root rights, the application also has quite broad capabilities.

Here it is, the beast)

Termux also has a number of add-ons that can all be found in F-Droid.

  1. Termux: API – Access to Android and Chrome hardware features.
  2. Termux: Boot – run script (s) when your device boots.
  3. Termux: Float – start Termux in a floating window.
  4. Termux: Styling – Use Powerline color schemes and fonts to customize the look of the Termux terminal.
  5. Termux: Tasker is an easy way to call Termux executables from Tasker and compatible apps.
  6. Termux: Widget – Run small scriptlets from the home screen.

What is Termux used for

  1. Device automation using scripts and Termux Tasker add-on.
  2. File transfer and sync via syncthing, rsync, rclone, etc.
  3. Programming (clang, python, vim, etc.).
  4. Checking the security of devices for hacking.
  5. Checking the security of sites for DDoS or Dos.
  6. Look for vulnerabilities in a router or network.
  7. Spam protection check (maybe someone will need it :))

Installation

If installed, then via F-Droid, since Google Play support for updates has been discontinued. To date, only support for Android devices from 7.0-12.0 has been implemented. To install on a PC, you need to use special utilities. Currently the most popular utilities are Bluestacks and NoxPlayer.

Commands

Once Termux is a console, it accepts commands. (Similar to cmd).

Here is a list of commands you might find useful.

  • apt update # – search for updates. Always execute these first 2 commands before starting.
  • apt upgrade # -installing updates
  • pkg apt install # install package
  • git clone # install repository from GitHub
  • help # help displays a list of termux commands
  • help # lists commands for a package example –python help
  • pkg search package – searches for a package package
  • pkg remove package – removes a package
  • pkg list-installed – will display a list of downloaded packages
  • !!! – repeat the last command
  • exit – log out

File system

  • ls – list of files and directories
  • ls -al – formatted list with hidden directories and files
  • cd dir – change directory to dir
  • cd – change to home directory
  • pwd – show current directory
  • mkdir dir – create dir directory
  • rm file – delete a file
  • rm -r dir – delete directory dir
  • rm -f file – forcefully delete a file
  • rm -rf dir – forcefully delete directory dir
  • cp file1 file2 – copy file1 to file2
  • cp -r dir1 dir2 – copy dir1 to dir2; will create directory dir2 if it doesn’t exist
  • mv file1 file2 – rename or move file1 to file2. if file2 is an existing directory, move file1 to directory file2
  • ln -s file link – create a symbolic link to file file
  • touch file – create a file
  • cat> file – pipe standard input to a file
  • more file – display the contents of a file
  • head file – print the first 10 lines of a file
  • tail file – print the last 10 lines of a file
  • tail -f file – print the contents of the file as it grows, starts with the last 10 lines

Process management

  • kill pid – kill process with id pid
  • top – show all running processes
  • killall proc – kill all processes named proc
  • bg – list of stopped and background tasks; continue execution of a stopped task in the background
  • fg – Brings the most recent tasks to the foreground
  • fg n – bring task n to the front

File access rights

chmod octal file – change file permissions to octal, separate for user, group.

  • 4 – reading ®
  • 2 – record (w)
  • 1 – version (x)

System information

  • date – display the current date and time
  • cal – display the calendar for the current month
  • uptime – show the current uptime
  • whoami – the name under which you are logged in
  • uname -a – show kernel information
  • cat / proc / cpuinfo – CPU information
  • cat / proc / meminfo – memory information
  • command man – show the manual for a command
  • df – show info. about using discs
  • du – display the “weight” of the current directory
  • free – memory usage and sharing
  • whereis app – possible location of the app program
  • which application – which application will be launched by default

Network

  • ping host – ping a host and display the result
  • whois domain – get whois information for a domain

    dig domain – get DNS information about a domain
  • dig -x host – reverse search for host
  • wget file – download file
  • wget -c file – resume stopped download

Installing python2 / 3 scripts

In Termux, calling python: python2 and python.

(X is the Python version)

  • pythonX setup.py
  • pythonX -m pip install -r requirements.txt

or

  • pipX install -r requirements.txt

Keyboard shortcuts

  • Ctrl + C – end the current command
  • Ctrl + Z – stop the current command, continue with fg in the foreground or bg in the background
  • Ctrl + D – log out, the same as log out

    Ctrl + W –
  • Ctrl + W – delete one word in the current line
  • Ctrl + U – delete line
  • Also arrows (up and down) can be used as command history

And yet, what can he do?

And a lot of things can be found in github for termux, but I will leave one program in which there are many tools for checking the security of the device. I AM I do not bear at your own risk.

DarkFly-Tool includes a huge variety of tools. From checking for security against viruses to downloading videos from the Internet. It contains both harmless tools and utilities for hacking cameras, viruses, spammers, and the like.

Installation in Termux

  • git clone github.com/Ranginang67/DarkFly-Tool
  • DarkFly-Tool CD
  • chmod + x install.py

Usage

  • python2 install.py
  • DarkFly

Funny : D

Runner – the train will run across your train screen and after it passes you will see your terminal.

This command will install the sl package in termux: (small thing, nice)

  • pkg install sl

The sl package is now installed in your termux and you just need to type sl.

You may also like