Basic Commands Using Termux


Basic Commands Using Termux




What is the Termux?

Termux is a great tool that allows assess to advanced tools without root on your android phone. Termux is command- based and to use this app the most basic thing you should know is commands. In this post we are going to learn about most basic commands in the termux app.


List of all the termux basic commands;

You can run this commands in sequence to practice and know your self how these commands work on termux. If you have any question and idias please comments Iwill be happy to help You.


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 ton upgrade pr not, press Y if you want the update.

Grant storage permission:

“termux-setup-storge’
Now you can accesses your storage and all the folder in it using termux.


Clear Screen;
“Clear”
By typing clear in the termux you can clear all the previous result.


Create a folder or a directory;

“mkdir folderName”
Mkdir stand for make directory. Type mkdir and give a space and types folder name and prees enter to see the folder you have just created just type is.

Delete a folder or directory:

“rmdir folderName”
Rmdir stands for Remove Directory. Types rmdir space folder name to remove that folder.


List all the file and directories:

“ls”
This command will show you the folder and files in your current working directory.


Know Which directory you are in:

“pwd”
This command will tell you present working directory.


Move forward in directories:

“cd storage”
Cd command allows you to move in a folder just type cd and the folder name you move here I am moving in storage.

Move forward in directories:

“cd ..”
By typing cd.. you will go back in the directory you were in.


Install a package;
“pkg install packagename”

You can install any package from the list, just type pkg install package-name.

Uninstall a package;

“pkg uninstall packageName”
You can uninstall any packages from the list, just type pkg uninstall package will be uninstalled.


Install python;

“pkg install python”
Just type this commands and it Will be installed in your termux press Y if it asks for confirmation. After installing python you can write code and also run your own python scripts. Type python to check if python is properly installed or not.


Download projects from GitHub repository:

“git clone link-of the-project”
If you want to download any project from the git hub you can just use the above just change the Link-of-project with your link.


Search for the specific package in termux:

“pkg search package-name”
It will show you all the packages related to that package name.


List all the available packages in termux:
“pkg list-all”
It will show you all the packages that are available in the APT repository of termux.


Delete a file in termux:

‘rm file-name’
To delete any file within the directory in, just type the rm name of your file and press enter and it will be deleted.
e.g:rm data.txt

List all the install Packages in termux:

“dpkg – lsit”
By using this command You will be able to see all the installed packages in your termux app.

Check all the running processes in termux;
“top”

This command will show you all the task running on your termux. To quit the top command on termux just prees CTRL+C on your keyboard.


See what’s inside a text file:

“cat file-name”
Run this command and evreythings in the text will be printed on the terminal.

Create a text file in termux:

1.First, you have to download a package name nano. Type on termux pkg install nano prees Y when           asking for confirmation.

2. Type nano on the terminal.

3.Type anything you want I am typing hello word.

4. Prees CTRL+X and press Y t save the file.

5.Give the file name anyname.txt and press enter.

6. Type Is command to see your directory.


If You want to download pdf
click here


Conclusion:
The above commands are very basic commands and it will not make you a hacker but trust me. It will be in use whenver you are using terminal or termux. Learning to operate on CLI (command line interface) is really important if you wanna become a hacker. I didn’t include all the commands but almost everything important is there, if you think. I missed something. You can comment I will include that in this post.







Post a Comment

0 Comments