Termux Commands list, in this article you are going to some beginner level commands that you must know if you want to use commands.
There are Basic commands for Termux Emulator.
Termux – Clear Screen
To clear the screen run the clear command.
Termux – Current Working Directory
This command shows your current folder
Termux – Changing Directory
If you want to change your folder or you want to move from one folder to another than use this command. Here I’m moving in /home directory.
Termux – Move Back Directory
If you want to go back the previous folder then you can use the following command.
Termux – Create New File
To make a new file of any type you have to use the below command
Termux – Create New Directory
mkdir helps you to make a new folder in your current folder.
How to Delete Directory in Termux
To delete any folder you can use the first and second command. If the folder contains files that you want to delete then use the third command
rm -r < directory-name >
rm -r <directory-name>
Termux Commands for beginners
Termux – Delete File
delete any file type the rm <your-filename> and press enter and it will be deleted within a second.
Termux – Rename File and Directory & Move a File
This command does two things
- to move any file or folder.
- to rename the file or folder
mv <old-filename> <new-overwirte-filename>
mv -r <currnet-file-location> <your-new-destination-directory>
Termux – Copy File and Directory
This command copy all the files of that folder that you want to copy at any position
cp <filename> <new-filename>
cp -r <directory-name><new-directory-name>
Termux – File Editor nano and VI
Termux has various command-line editors but there have the most used and useful editor vi and nano. if you already have a file run the vi <filename> enters the edit mode by pressing ( “i” letter ) after edit the file press the ESC button and type ( :wq ) write and quiet. read more about vi editors.
nano is another 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.
Termux – Read File Content cat command
To read the content of the files this command is used.
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.
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.
chmod (permission-mode) <filename>
chown (newuser:newgroup) <filename>
Termux – Clone Source code from Github
Download any project from Github you can use the following command.
git clone <cloning url>
Termux – Download File wget and curl
If you want to download any file and project by using your terminal you can use the command to download anything by using the link
curl <download-file-url> -o <output-filename>
Termux – history All Previous run Command
checking all previously run commands.
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.
Install New Package
To install any packege by its name you can use the command. This is a very easy way to install any package
pkg install <package-name>
Remove Installed Package
if you want to uninstall any package from the list,
pkg remove <remove-package-name>
Update all packages
update all old installed package
apt update && apt upgrade -y
Update New added Package mirrors
if you want to update any package that you have installed in your machine then you can use the following command.