List of all the termux basic commands:
Update all the packages and dependencies installed on the system:
apt update && apt upgrade
If any update is available it will ask you on the terminal if you want to upgrade or not, press Y if you want the update.
This command will tell you, your present working directory
This command will show you the folder and files in your current working directory.
cd command allows you to move in a folder just type cd and the folder name you wanna move here I am moving in storage.
Grant storage permission:
termux-setup-storagenow you can access your Storage and all the folder in it using termux.
Know Which directory you are in:
pwd
List all the files and directories:
ls
Move forward in directories:
cd storage
Move backward in directories:
cd ..
by typing cd ..(between cd and .. we have to put space) you will go back in the directory you were in.
by typing clear in the termux you can clear all the previous results.
Mkdir Stand for make directory. Type mkdir and give a space and type folder name and press enter to see the folder you have just created just type ls.
Rmdir stands for Remove Directory.Type rmdir space folder name to remove that folder.
Please use this command with caution.This command will remove a folder and all the files and folders within it.This command is useful when you want to delete any project downloaded from Github.
You can copy files by typing cp the file name and after giving a space you can type the path where you wanna copy the file E.g: cp virus.apk /storage/shared this will copy the virus.apk to the storage/shared folder.
It will show you all the package related to that package name.
Clear Screen:
clear
Create a folder or a directory:
mkdir folderName
Delete a folder or a directory:
rmdir folderName
Delete Non-Empty directory or folder in termux:
rm -rf folderName
Copy a file from one directory to another directory:
cp files-name file-path
Search for the specific package in termux:
pkg search package-name
List all the available packages in termux:
pkg list-all
Install a Package:
pkg install packageName
Uninstall a Package:
pkg uninstall packageName
Install Python in termux:
pkg install python
Install Git in termux:
pkg install git
Git will allow you to download any project from the github.
pkg install git
Download projects from GitHub repository :
git clone Link-of-the-project
e.g: git clone https://github.com/gokulapap/bugdork
Check all the running processes in termux:
top
Create a text file in termux:
- first, you have to download a package name nano. Type on termux pkg install nano press y when asking for confirmation.
- type nano on the terminal.
- type anything you want I am typing hello world.
- Press CTRL+X and press Y to save the file.
- Give the file name anyname.txt and press enter.
- Type ls command to see your directory.
See what's inside a text file:
cat file-name
e.g: cat data.txt
Delete a file in termux:
rm file-name
e.g: rm data.txt
List all the installed Packages in termux:
dpkg --list
By Using this command You will be able to see all the installed packages in your termux app.