What is termux?
Termux is a android terminal emulator and linux environment application that works directly with no rooting or setup required. A minimal base system is installed automatically, additional packages are installed using the APT package manager
Following are some basic usage commands for termux
Gives storage permissions:
termux-setup-storage
Home directory:
cd
Previous directory:
cd ..
Jump to folder:
cd (folder)
Clear the terminal:
clear
Present working directory:
pwd
Copy a file:
cp (file)
Copy a folder:
cp -rf (folder)
Move a file:
mv (file)
Move a folder:
mv (folder)
Remove a file:
rm (file)
Remove a folder:
rm -rf (folder)
Create a file:
touch (file name)
Create a folder:
mkdir (folder)
Display the text of a file:
cat (file name)
Display date/calender:
date/cal
Install any package:
apt or package install
Upgrade any package:
apt or package upgrade
Uninstall a package:
apt or pkg uninstall
Executable permission to a file:
chmod +x (file)
Executable permission to all files in a folder:
chmod +x *
Display package version:
(pkg name) --version
List all packages:
apt list
Edit a file with nano editor:
nano (file)
Unzip a file:
unzip (file)
Zip folders and files:
zip (folder / files)
List files and folders:
ls
List hidded files and folders too:
ls -a
Show a package information:
apt or pkg show (pkg name)
List all installed packages:
dpkg -list
Remove unnecessary packages:
apt autoremove
Show system space:
free
Show device information:
screenfetch
Show login name:
whoami
Search a package:
apt / pkg search (pkg)
Search a file with name:
locate (file)
Install tools with wget package:
wget (url)
Install tools by cloning the tool (need git to be install first):
git clone (url)
Show all configuration of a network:
ifconfig
Exit the terminal:
exit