Loading ...

What is Termux ? and how to use in android

Certainly! Here’s a list of more useful commands and tools you can use in Termux, categorized by their purpose.

System Information & Management

  1. View System Information:
   uname -a
  • Displays detailed system information.
  1. Check Disk Usage:
   df -h
  • Shows the disk space usage.
  1. Check Memory Usage:
   free -h
  • Displays memory usage information.
  1. List Installed Packages:
   pkg list-installed
  • Lists all installed packages in Termux.
  1. Update Packages:
   pkg update
  • Updates the list of available packages and their versions.
  1. Upgrade All Packages:
   pkg upgrade
  • Upgrades all installed packages to their latest versions.
  1. Install a Specific Package:
   pkg install <package_name>
  • Installs a package, replacing <package_name> with the actual package name.

File Management

  1. List Files in Directory:
   ls -la
  • Lists all files and directories with detailed information.
  1. Copy Files:
   cp <source> <destination>
  • Copies a file from the source to the destination.
  1. Move or Rename Files:
   mv <source> <destination>
  • Moves or renames a file from the source to the destination.
  1. Create a Directory:
   mkdir <directory_name>
  • Creates a new directory.
  1. Remove a File:
   rm <file_name>
  • Removes a specified file.
  1. Remove a Directory and Its Contents:
   rm -r <directory_name>
  • Deletes a directory and all its contents.
  1. Change Permissions of a File:
   chmod <permissions> <file_name>
  • Changes the permissions of a file. For example, chmod 755 file.sh makes it executable.

Networking

  1. Check IP Address:
   ip addr show
  • Displays your device’s IP address and network information.
  1. Ping a Host:
   ping <hostname_or_ip>
  • Sends ICMP echo requests to test network connectivity to a host.
  1. Download a File:
   curl -O <URL>
  • Downloads a file from a URL.
  1. Check Open Ports:
   netstat -tuln
  • Lists all open ports and the services listening on them.
  1. Scan for Open Ports:
   nmap <hostname_or_ip>
  • Scans a target for open ports and services (requires nmap to be installed).

Text Editing

  1. Install Nano Editor:
   pkg install nano
  • Installs the Nano text editor.
  1. Open or Create a File with Nano:
   nano <file_name>
  • Opens an existing file or creates a new file for editing.
  1. Install Vim Editor:
   pkg install vim
  • Installs the Vim text editor.
  1. Open or Create a File with Vim:
   vim <file_name>
  • Opens an existing file or creates a new file for editing.

Programming & Scripting

  1. Install Python:
   pkg install python
  • Installs Python on Termux.
  1. Run a Python Script:
   python <script_name.py>
  • Executes a Python script.
  1. Install Git:
   pkg install git
  • Installs Git, a version control system.
  1. Clone a Git Repository:
   git clone <repository_url>
  • Clones a repository from GitHub or another Git platform.
  1. Install Node.js:
   pkg install nodejs
  • Installs Node.js, which allows you to run JavaScript code server-side.
  1. Run a Node.js Script:
   node <script_name.js>
  • Executes a Node.js script.

Utilities

  1. Install Wget:
   pkg install wget
  • Installs the Wget tool for downloading files from the web.
  1. Download a File with Wget:
   wget <URL>
  • Downloads a file from the specified URL.
  1. Install Htop (Interactive Process Viewer):
   pkg install htop
  • Installs htop, a tool for monitoring system processes.
  1. Run Htop:
   htop
  • Launches htop to view and manage running processes.
  1. Install OpenSSH (for SSH Access):
   pkg install openssh
  • Installs OpenSSH to allow SSH access to Termux.
  1. Start an SSH Server:
   sshd
  • Starts the SSH server, allowing you to SSH into your Termux session from another device.

Fun and Miscellaneous

  1. Install CMatrix (Matrix Screensaver):
   pkg install cmatrix
  • Installs CMatrix, which displays a cool Matrix-like screensaver.
  1. Run CMatrix:
   cmatrix
  • Starts the CMatrix screensaver.
  1. Install Figlet (ASCII Text Generator):
   pkg install figlet
  • Installs Figlet, a tool to create large ASCII text.
  1. Create ASCII Art Text:
   figlet <your_text>
  • Generates ASCII art from the text you provide.

Security Tools

  1. Install Metasploit:
   pkg install unstable-repo
   pkg install metasploit
  • Installs the Metasploit framework for penetration testing.
  1. Start Metasploit:
   msfconsole
  • Launches the Metasploit console.
  1. Install Hydra (Password Cracking Tool):
   pkg install hydra
  • Installs Hydra, a brute-force password cracking tool.
  1. Use Hydra to Brute-Force an SSH Login:
   hydra -l <username> -P <password_list> ssh://<target_ip>
  • Attempts to brute-force an SSH login using the specified username and password list.

Conclusion

These commands provide you with a broad range of functionalities in Termux, from basic system management to programming, networking, and ethical hacking. Termux is incredibly versatile, and learning to use these commands effectively will help you make the most out of this powerful tool on your Android device.

Related Posts

Real-time Chat Application with Bootstrap 5 & PHP Socket Programming Tutorial

Building a Real-time Chat Application with Bootstrap 5 and Socket Programming Creating a chat application involves integrating real-time data transfer between a client and a server. By combining Bootstrap 5…

Read more

PHP Socket Programming Tutorial with Example Code and Explanations

PHP Socket Programming: A Comprehensive Guide with Example Socket programming in PHP is a powerful way to enable real-time communication between a client and a server. Through sockets, you can…

Read more

How to Create an API in PHP: A Step-by-Step Guide

APIs (Application Programming Interfaces) have become a core component of web development, enabling communication between different software applications. While PHP is known for building dynamic websites, it’s also highly effective…

Read more

How to Create APIs in Laravel with Basic Authentication | Secure Laravel APIsCreating APIs in Laravel with Basic Authentication

APIs are the backbone of modern applications, enabling data exchange between different services. Laravel provides an easy and elegant way to create APIs, and integrating Basic Authentication makes them secure…

Read more

What is an API? Understanding the Backbone of Modern Software Development

In today’s interconnected digital world, the term “API” is frequently mentioned, especially in discussions about software development, mobile apps, and web services. But what exactly is an API, and why…

Read more

WHAT IS DOS Attack? and How to perform in Linux?

Understanding DOS Attack: An Introduction What is a DOS Attack? A Denial of Service (DOS) attack is a malicious attempt to disrupt the normal functioning of a targeted server, service,…

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *