Termux is an Android terminal emulator and Linux environment Android app that works directly with root and without root. A Terminal base system is installed automatically – additional packages are available using the APT package manager.
There are Some Basic commands for Termux Emulator. If you already use any Linux system and you know any Linux OS commands you can easily learn these Termux commands.
- Hiddeneye Install in Termux
- basic linux commands
- Linux Lostat Command
- Termux Commands list 2022
- Hack Android Mobile Through Kali Linux.
Termux – Clear Screen
To clear all screen content run the clear command.
1 |
clear |
Termux – Current Working Directory
This command will tell you, your current working directory.
1 |
pwd |
Termux – Changing Directory
cd command uses to change our current working directory to another directory, type cd, and your directory name. I’m moving in /home directory.
1 |
cd /home |
Termux – Move Back Directory
If you want one directory to move back by using cd .. you can easily back one directory. and you wanna back two directories use the cd ../../ command.
1 2 |
cd .. cd ../../ |
Termux – Create New File
by using the touch command we can easily create a file
1 |
touch <file-name> |
Termux – Create New Directory
Mkdir Stands for creating a new directory. Let’s Type the mkdir command and give a directory and use a space gape and hit the enter button.
1 |
mkdir <new-directoy-name> |
How to Delete Directory in Termux
delete any directory by using the command, just type the rmdir <delete directory-name> and press enter and it will be deleted. delete the directory and their contents recursively rm -r < directory-name >
1 2 |
rmdir <directory-name> rm -r <directory-name> |
Termux – Delete File
delete any file type the rm <your-filename> and press enter and it will be deleted within a second.
1 |
rm <file-name> |
Termux – Rename File and Directory & Move a File
The mv command is a Linux command-line utility that moves files or directories from one place to another. rename filename type the command mv <old-filename> <new-filename>
1 2 |
mv <old-filename> <new-overwirte-filename> mv -r <currnet-file-location> <your-new-destination-directory> |
Termux – Copy File and Directory
copy file source to destination. this is another Linux command-line utility for copy files and directories. if you want to copy a directory you must use cp -r copy directories and their contents recursively.
1 2 |
cp <filename> <new-filename> cp -r <directory-name> <new-directory-name> |
Termux – File Editor nano and VI
Termux has many command-line editors but there have the most useful editors vi and nano. if you already have a file run the vi <filename> enter the edit mode by pressing ( i ) after edit the file press the ESC button and type ( :wq ) write and quiet. read more about vi editors.
nano is another Termux editor type nano <filename> edit your file and save the file by using ( Ctrl+x ) and type y for yes and again hit enter and your file is saved.
1 2 |
vi <filename> nano <filename> |
Termux – Read File Content cat command
Run the cat command using extra argument <your-read-file-name> and everything is seen in the terminal inside the text file.
1 |
cat <filename> |
Termux – All running background Process Top command
Know all running processes in Termux you can easily see all running processes by using the top command.
1 |
top |
Termux – Change Permission and Group
you can easily change every file permission and change file ownership group and user. for adding execute permission to run the command. ( chmod +x <file-name> ) if you want to change file ownership run the command ( chown newuser:newgroup <filename>. more about Linux permission read the article.
1 2 |
chmod (permission-mode) <filename> chown (newuser:newgroup) <filename> |
Termux – Clone Source code from Github
Download new project and cloning project from git hub run the command.
1 |
git clone <cloning url> |
Termux – Download File wget and curl
If you want to download the file through the terminal. there are many download tools but we are mostly using these tools. wget and curl you can download every file from the internet by using those tools.
1 2 |
wget <download-file-url> curl <download-file-url> -o <output-filename> |
Termux – history All Previous run Command
checking all previously run commands.
1 |
history |
Termux Install all Packages Command 2021
List all installed Packages
The command will display a list of all installed packages including the versions of the packages.
1 |
dpkg --list |
Install New Package
installing a new package let’s try one example install python3. run the command < pkg install python3 > and you see a promote type y for yes and your package is installed soon. it depends on your internet speed.
1 |
pkg install <package-name> |
Remove Installed Package
you can uninstall any package from the list, just type pkg remove and <remove-package-name>.it will ask you. if you wanna delete the package press y or not n After typing y the package will be removed automatically.
1 |
pkg remove <remove-package-name> |
By using this command we can update our all installed packages
1 |
apt update && apt upgrade -y |
Update New added Package mirrors
If you add a new repository in your source.list file. before installing a new package you just need to run the apt update command.
1 |
apt update |
Display kernel information
1 |
uname -a |
Get whois information of the domain through Termux.
1 |
whois domain.com |
Check Active Port in Termux
1 |
netstat -tnlp |
Check all network interfaces or assigned IP, mac addresses in Termux
1 |
ifconfig |
Find of an executable file in Termux
1 |
which filename |
Find all files with filename
1 |
locate filename |
Show PCI devices
1 |
lspci |
Send a ping packet to the target in termux
1 |
ping ip,domain |
Connect to SSH Server in Termux Terminal
1 |
ssh username@ip |
Connect to FTP Server in Termux Terminal
1 |
ftp ip-address |
Check Background process in Termux
1 |
top |
Terminal history check in Termux
1 |
history |
Download file through Terminal in Termux
1 |
wget url |