All Termux Commands Learn to Start Hacking

Termux is a powerful terminal emulator for Android that allows you to access a Linux-like command line environment on your mobile device. Here is a list of some commonly used Termux commands and their basic usage:

  1. apt: A package manager for installing, updating, and removing software packages.

    • apt update: Updates the package list.
    • apt upgrade: Upgrades installed packages.
    • apt install <package>: Installs a package.
    • apt remove <package>: Removes a package.
    • apt search <package>: Searches for packages.
  2. pkg: An alternative package manager that comes with Termux. It’s similar to apt.

    • pkg update: Updates the package list.
    • pkg upgrade: Upgrades installed packages.
    • pkg install <package>: Installs a package.
    • pkg uninstall <package>: Uninstalls a package.

Termux

  1. ls: Lists files and directories in the current directory.

    • ls: List files and directories.
    • ls -l: List in long format (includes permissions, owner, group, size, and date).
    • ls -a: List all files, including hidden files.
      • cd <directory>: Change to a specific directory.
      • cd ..: Move up one directory.
      • cd ~: Change to the home directory.

  1. pwd: Print the current working directory.
  2. touch: Create an empty file.
    • touch <filename>: Creates a new file.
  3. mkdir: Create a new directory.
    • mkdir <directory>: Creates a new directory.

Termux

  1. rm: Remove files or directories.
    • rm <file>: Remove a file.
    • rm -r <directory>: Remove a directory and its contents (use with caution).
  2. cp: Copy files or directories.
    • cp <source> <destination>: Copy a file or directory.
  3. mv: Move or rename files or directories.
    • mv <source> <destination>: Move or rename a file or directory.
  4. cat: View the contents of a file.
    • cat <file>: Display the contents of a file.
  5. nano or vim: Text editors for editing files.
    • nano <file>: Open a file in the Nano text editor.
    • vim <file>: Open a file in the Vim text editor.
  6. wget or curl: Download files from the internet.
    • wget <URL>: Download a file using wget.
    • curl -O <URL>: Download a file using curl.
  7. chmod: Change file permissions.
    • chmod <permissions> <file>: Change the permissions of a file.
  8. chown: Change file ownership.
    • chown <user>:<group> <file>: Change the owner and group of a file.
  9. ps: List running processes.
    • ps: List running processes.
    • ps -ef: List all processes with details.
  10. kill: Terminate processes.
    • kill <process_id>: Terminate a process by its ID.
  11. df: Display disk space usage.
    • df: Show disk space usage.
  12. du: Display file and directory space usage.
    • du <directory>: Show space usage of a directory.
  13. history: View command history.
    • history: Show the command history.

These are just some of the basic commands you can use in Termux. You can explore more commands and their options by referring to the documentation or using the --help option with any command to see its usage and available options.

Leave a Comment