Jump to content

40+ Most Useful Termux Commands You Should Know as a Beginner

Featured Replies

Posted

๐Ÿ“ฑ Complete Beginner Guide to Termux โ€“ 40+ Useful Commands Made Easy

Have you just downloaded Termux and donโ€™t know how to use it?

Donโ€™t worry! In this blog post, Iโ€™ll show you how to use Termux step-by-step, with over 40 important commands to help you copy files, move folders, create new things, and do many powerful tasks on your Android phone.

โœ… Donโ€™t worry if youโ€™re a beginner โ€” I will use simple English with examples.

๐Ÿค” What Is Termux?

Termux is a free Android app that gives you a Linux terminal on your phone.

You can use it to:

  • Learn Linux commands

  • Write and run scripts

  • Test hacking tools

  • Manage files and folders

  • Install packages and programs

Letโ€™s start learning the most useful commands in Termux!

๐Ÿ“‚ File and Folder (Directory) Commands

๐Ÿ”น 1. Create a Folder

mkdir foldername

Example:

mkdir myfiles

๐Ÿ”น 2. Create a File

touch filename

Example:

touch notes.txt

๐Ÿ”น 3. See Whatโ€™s Inside a Folder

ls

๐Ÿ”น 4. Go Inside a Folder

cd foldername

Example:

cd myfiles

๐Ÿ”น 5. Go Back One Step

cd ..

๐Ÿ”น 6. Go to Home Directory

cd

๐Ÿ”น 7. Copy a File

cp filename newlocation

Example:

cp notes.txt /sdcard/

๐Ÿ”น 8. Copy a Folder (with everything inside)

cp -r foldername newlocation

๐Ÿ”น 9. Move a File

mv filename newlocation

๐Ÿ”น 10. Rename a File or Folder

mv oldname newname

Example:

mv old.txt new.txt

๐Ÿ”น 11. Delete a File

rm filename

๐Ÿ”น 12. Delete a Folder

rm -r foldername

โš™๏ธ System and Package Commands

๐Ÿ”น 13. Update Package List

apt update

๐Ÿ”น 14. Upgrade All Packages

apt upgrade

๐Ÿ”น 15. Install a Package

pkg install packagename

Example:

pkg install python

๐Ÿ”น 16. Uninstall a Package

pkg uninstall packagename

๐Ÿ”น 17. See All Installed Packages

pkg list-installed

๐Ÿงช Useful Termux Tools to Install

๐Ÿ”น 18. Install Python

pkg install python

๐Ÿ”น 19. Install Git

pkg install git

๐Ÿ”น 20. Install Curl (used for downloading)

pkg install curl

๐Ÿ”น 21. Install Wget (another way to download)

pkg install wget

๐Ÿ”น 22. Install Nano (text editor)

pkg install nano

๐Ÿ”น 23. Install Nmap (for scanning)

pkg install nmap

๐Ÿ”น 24. Install PHP

pkg install php

๐Ÿ–Š๏ธ File Editing and Viewing

๐Ÿ”น 25. Open a File in Nano

nano filename

๐Ÿ”น 26. View File Content

cat filename

๐Ÿ”น 27. See Text with Scroll

less filename

๐ŸŒ Internet and Networking

๐Ÿ”น 28. Check Internet Connection

ping google.com

๐Ÿ”น 29. Download a File

wget URL

๐Ÿ”น 30. Use Curl to Fetch Website Data

curl URL

๐Ÿ”น 31. Use Nmap to Scan

nmap website.com

๐Ÿ” Permissions and Access

๐Ÿ”น 32. Give Storage Access to Termux (Very Important)

termux-setup-storage

๐Ÿ”น 33. Change File Permissions

chmod 777 filename

๐Ÿ”น 34. Run a Script File

bash filename.sh

๐Ÿ” Git and Cloning Repos

๐Ÿ”น 35. Clone a GitHub Tool

git clone https://github.com/username/repo.git

๐Ÿ”น 36. Go into the Cloned Folder

cd repo

๐Ÿ”น 37. Run the Tool

bash toolname.sh

๐Ÿ” More Helpful Commands

๐Ÿ”น 38. Clear the Screen

clear

๐Ÿ”น 39. See Current Directory

pwd

๐Ÿ”น 40. Exit Termux

exit

๐Ÿ“ Final Words

Termux is a powerful app that helps you learn Linux, hacking, programming, and more โ€” right from your Android phone.

With these 40+ commands, you can now:

  • Create and manage files

  • Install tools

  • Use GitHub

  • Practice ethical hacking

  • Automate tasks

  • And more!

๐Ÿ’ก Always use Termux for good purposes โ€” like learning, testing, and growing your skills.



Create an account or sign in to comment