How to use Termux..?
Your coming to this post means that you have installed Termux. If not, please install it from here: Termux APK
Any software does not have its own storage, that is why it is installed from the mobile memory and uses its memory to store data.
- Setup storage in TERMUX.
termux-setup-storage
- Update and upgrade Termux.
pkg update && pkg upgrade
- Install PHP in Termux.
pkg install php
- Install Python and Python2 in Termux.
pkg install python python2
- Install some important packages.
pkg install nano
pkg install fish
pkg install git
pkg install ruby
pkg install wget
pkg install figlet
pkg install toilet
pkg install curl
gem install lolcat
- Install the Matrix command.
pkg install cmatrix
apt list –upgradable
apt –fix-broken install
Now your Termux is ready to use.
Now we know how to create file and directory in Termux.
- touch [file name] – To create new file.
- cat > [file name] – To create new file with content.
- echo “hello world” > [file name] – Create new file with content.
- cat >> [file name] – Append content to existing file.
- mkdir [name] – Create a directory or folder.
Termux Usage of CD Commands
- cd – To change directory.
- cd / – To return to root directory.
- cd .. – Change current directory to original directory.
- cd – – To go back one directory from original directory.
- cd — – To show previous working directory from where we ran.
- cd ~ – Move to users home directory from anywhere.
Termux Copy and Move Commands
- cp [file name] [location where you want copy] – Copy any file.
- cp -r – Copy any directory.
- cp -n – Do not overwrite any file.
- mv [file name] [location where you want copy] – Revert to any file.
- mv -v – Revert to any directory.
- mv [file1 name] [new file2 name] – Rename two files at a time.
- mv -i – Interactive prompt before overwriting
- mv -f – Force move by overwriting any files without prompt
Termux’s Commands
- ls – Move to list directory.
- ls –help – Get help to use ls directory.
- ls -l – Show file actions like – modify, date and time, owner of the file, permissions etc.
- ls -n – To display UID and GID of directory.
- ls –version – Check the version of ls command.
- ls -a – List all hidden files.
- ls -al – Formatted listing with hidden files.
- ls -i – Display number of file or directory.
Termux More Useful Commands
- rm – Delete or remove files.
- rm [filename] – Delete any text file.
- rmdir [dir name] – Delete any directory.
- rm -rf – Forcefully delete any directory or folder.
- rm -r [name] – Delete any directory name.
- pwd – It shows your current working directory.
- wget [url] – Install tools, apt install wget
- git clone [url] – Install any tools with git clone, apt install git
- curl -O [url] – apt install curl
- apt search [qurey] – Use to get available packages.
- pkg search [qurey] – Search for packages.
- apt remove [package name] – uninstall / remove a package
- apt show – view package information.
- more [file name] – output the contents of a file.
- head [file name] – output the first 10 lines of a file.
- tail -f [file name] – output the contents of the file as it expands.
- zip name.zip [file] – compress the file using this command.
- unzip [zip file] – unzip the file.
- bye – end the current ftp session, exit.
- bell – sound of a bell after each command.
- uname -m – used to find the architecture of your device.
- uname -a – used to display kernel information.
- du – display directory space usage.
- df – display disk usage.
- cal – display calendar.
- w – Show which processes are currently online.
- cat /proc/meminfo – Show memory-related information.
- cat /proc/cpuinfo – View CPU information.
- whoami – View login name.
- date – View current date and time.
- uptime – Show current uptime of the system.
- man command – View manual commands.
- free – Display memory and swap usage.
- kill – Send signal to the process.
- kill-l – List all signals that are possible to send to terminate.
- locate [file] – Find all files with the file name.
- whereis [command] – Find the location binary/source/man file for a command.
- which [command] – Find an executable.
- grep pattern [files] – Search for pattern in files.
- grep -r pattern files – Search for some pattern in files.
- command | grep pattern – Search for patterns in the output of a command.
- find / -cmin -60 – Find files changed in the last 1 hour.
- find / -type d -name mll – Find all directories named mll in the directory.
- tracerout ipadress – Display the number of hops and response time to visit a remote system and website.
- whois domain – Get whois information of a domain.
- dig domain – Get DNS information of a domain.
- scp – Copy file to a source.
- whereis app – Shows possible locations for an app.
- nano [file name] – Display and edit text files.
- append [local-file] – Appends a local file to one on the remote.
- ifconfig – Shows all configurations a network interface like ip, mac.
- ifconfig eth0 – View network settings on the used interface eth0.
- ifconfig wlan0 – View network settings on wlan0.
- ping [host] – To ping the host IP and show the result.
- arp – Check network card and show IP address.
- host – Display epecific server.
Termux Common Programs
- 7z: pkg i p7zip
- FFMpeg: pkg i ffmpeg
- Git: pkg i git
- Hydra: pkg i hydra
- Nano: pkg i nano
- Nmap: pkg i nmap
- Node: pkg i nodejs
- SQLMap: pkg i python2 && pip2 install -U sqlmap
- Vim: pkg i vim
Discover more from MNS.Code.Blog
Subscribe to get the latest posts sent to your email.

One reply on “How To Use Termux With Commands”
[…] 1: Open The Termux App And Connect Your Device To The […]
LikeLike