Basic Termux Commands List for Beginners [With PDF Download]

Did you know that you can transform your Android device into a mini Linux machine with the help of the Termux application? Well yes, Termux is a command-line application that can run almost all Linux tools and packages on Android devices.

Today in this post, I am going to share a basic Termux command list that can help you learn and use Termux more easily.

Termux Commands List with PDF file
Termux Commands List with PDF file

What is Termux

Every beginner who is interested in cyber security and ethical hacking thinks that Termux is a hacking machine. Is Termux a really hacking machine? Well, the answer is no. Termux is specifically designed for learning cybersecurity and penetration testing, but some developers have developed hacking tools that run in Termux.

Termux is actually an Android terminal application that provides a Linux-like environment, allowing users to run various command-line tools and packages.

Termux provides a safe and secure platform within Android devices where users can do Linux work’s like programming, scripting, remote SSH server, penetration testing, and more.

Now let’s dive into some basic Termux commands you need to know before using Termux.

Basic Termux Commands List

Termux Commands List
Termux Commands List

Below is a basic Termux command list, ranging from package management commands to additional commands that will help a beginner to use Termux easily and efficiently.

1. Termux Packages Management Commands

APT and PKG are the package managers of Termux. You can use APT and PKG package managers in Termux to install, uninstall and manage packages. Below I have given some basic package management Termux commands:

  • $ apt update : Will update installed packages to the newest version.
  • $ apt upgrade : Will upgrade installed packages to the newest version.
  • $ pkg install (package): Install new packages.
  • $ pkg uninstall (package_name) : Uninstall a package.
  • $ pkg list-installed : Lists installed packages.

2. Termux File Management Commands

You can use file manager commands to create, remove, and manage files in Termux. Here are some basic Termux commands for file management:

  • $ ls : Will show you currently present files and directories.
  • $ cat (filename) : Will opens a file to its contents.
  • $ mv (old_name) (new_name) : Rename old file name to a new file name.
  • $ touch (filename) : Create blank files.
  • $ rm (filename) : Deletes a file.

3. Termux Directory Management Commands

Folders are called directories in Termux. With the help of directory management commands, you can efficiently navigate, create, move, and delete directories within Termux. Some basic directory management Termux commands are:

  • $ ls : Will show you currently present files and directories.
  • $ cd directory_name : Changes current directory to a specific directory.
  • $ mkdir (directory_name) : Creates a directory.
  • $ rm -rf (directory_name) : Deletes a specific directory.
  • $ pwd : Will show you current working location.
  • $ mv (old_name) (new_name) : Rename a directory.

4. Termux File Editing Commands

Termux comes with Nano and Vim text editors, which are sufficient for editing files in Termux. You can use Nano and Vim commands like this:

  • $ cat (filename) : Shows contents of a file.
  • $ nano (file_name) : Opens nano to edit a specific file.
  • $ pkg install vim : Installs advanced file editor “vim”.
  • $ vim (file_name) : To edit a file using vim text editor.

5. Termux Networking Commands

Termux allows users to do many types of network-related work by installing various networking tools. Some basic networking Termux commands are:

  • $ pkg install nmap : Installs the network scanner tool Nmap.
  • $ nmap (ip_address) : Will Stats a basic network scan.
  • $ ifconfig : Displays your network informations.
  • $ wget (url) : Downloads a file from a specific URL.
  • $ curl (url) :Displays the contents of a URL.

6. Termux System Management Commands

Termux system management involves maintaining, monitoring, and controlling the Termux environment with commands. Below I have provided some basic Termux Commands for system management:

  • $ date : Displays system date and time.
  • $ df -h : Shows storage usage.
  • $ uname -a : Displays information about your system, like the kernel version, architecture, and more.
  • $ uptime : Shows the system running time and average load.
  • $ free -h : Displays free storage space.
  • $ history : Displays the previous commands that you have entered.
  • $ whoami : Displays your current login username.

7. Termux Process Management Commands

You can control, monitor, and manage running processes on Termux with the help of the Termux process management commands. Some of its basic commands are

  • $ top : Shows current information about the running process, CPU, and memory usage.
  • $ ps aux : Displays currently running process with their IDs.
  • $ kill (PID) : Kills process with process IDs.
  • $ killall (process_name) : To terminate all processes of a specific process name.
  • $ pkill (process_name) : Kills process with process names.

8. Some Additional Commands

Below I have given some additional basic Termux commands that will help you to use Termux:

  • $ clear : Clears terminal screen.
  • $ cal : Displays a command line calendar.
  • $ pkg install python : Installs python programming language.
  • $ pkg install bc : To Install a basic command-line calculator 
  • $ bc : Opens the basic calculator: use +, -, ×, *, symbols to calculate any value.
  • $ termux-setup-storage : Asks permission to use internet storage.
  • $ termux-info : Shows the Android device system informations.
  • $ exit : Exits from current session.

These are some basic Termux commands for beginners. You can learn and use these commands to start your Termux journey. With the help of these commands, you can start using Termux more easily and efficiently. However, these are just some basic Termux commands, but if you are a beginner, then these commands are enough to make you a pro Termux user.

Download Termux Commands List PDF

The Termux commands list PDF file that was provided in this post was loaded with all the basic Termux commands from beginner to advanced, which included package management and networking commands. Simply click on the download button to download the Termux commands list PDF file.

Termux Commands List PDF

Conclusion

Termux provides a Linux-like environment on Android devices where almost all Linux tools and packages can be used. You can perform many Linux tasks with the help of the Termux application. Although Termux is a command-line application that requires some command-line knowledge but if you learn the basic Termux commands, then you can easily use Termux.

SHARE THIS POST:

Leave a Reply

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