How to you termux basic commands tutorial:2

    Basic Commands in termux.

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



List of All termux Basic commands Tutorial :2

Note: if any part of the command is Red that means it is a variable. The Red Part of the code will change according to the situation.

This is the part 2 of termux basic commands tutorial if you need termux Basic commands Tutorial:1 please click this link  https://fttechno.blogspot.com/2022/09/how-to-use-termux-basic-commands.html

So let's Start... 

Create a folder or a directory:

$ mkdir folder name
 
Rmdir stand  for Remove Directory.Type rmdir
Space and type folder name and press enter to see the folder you have just created just type ls.

Delete a folder or a directory:


$ rmdir folderName

Rmdir stands for Remove Directory. Type rmdir
Space folder name to remove that folder.

Delete Non-Empty Directory or folder in termux:


$ rm -rf folderName

Please use this command with caution. This command wil remove a folder and all the files and folder within it. This command is very useful when you want to delete any project download from Github. 

Copy a file from one Directory to another Directory to another Directory:

$ cp files-name file-path 

You can copy files by typing cp the files name and after giving a space you can type path wherer want to copy the files.

Move a file from one Directory to another Directory:


$ mv files-name file-path

You can move files by typing mv the file name and after giving a space you can type the path where you want to move the files.


Search for the specific package in termux:


$ pkg search package-name

It will show you all the package realted to that
Package name.

See the Details of a package in termux:


$ apt show nano 

This command will show you the complete details of a package. 

List all the available packages in termux:

$ pkg list-all

It will show you all the package that are available in the APT repository of termux.

Install a package:

$ apt install package-name 

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

Uninstall a package:


$ pkg uninstall package-name

You can uninstall any package from the list, just type pkg uninstall package-name. It will ask you where if you wanna delete the package or not press Y and the package will be uninstalled.

Install Git in termux:

$ pkg install git 

Git will allow you to download any project from GitHub.

Install python in termux:

$ pkg install python

Just type this command and it will be installed in your termux press Y if it's ask for confirmation after installing python you can write code and also run your own python scripts. Type python to check if python is installed correctly or not. 


Download project from GitHub repository:


$ git clone link-of-the-project 

If you want to download any project from the GitHub You can just use the above Change the link-of-the-project with your link.
For example: git clone link-of-the-project 


Check all the running process in termux:


$ top

This command will show you all the task running on termux.
If you stop this command so just press ctrl+c
on your keyboard. 

Make any bash file Executable:

$ chmod +x filename

If you are trying to run any bash file and you are getting permission dennied error then you can use the above command to make it Executable

Create a file in termux:

Some steps are follows:-

1) first, you have downloaded a package name nano. Type on termux apt install nano
Press Y when asking for you confirmations. 
2) type nano on the terminal. 
3) type anything you want I am typing fttechno.
4) press Ctrl+X and press Y to save the file.
5) Give the file name anyname. text and press enter. 

See what's inside a text file:

$ cat file-name

Run this command and everything in the text file will be printed on the terminal. 

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. 
For example:- rm data.text

List installed all the packages installed in termux:

$ dpkg-list

By using this command you will be able to see all the installed package in termux app.

List all commands that you have used in termex:


$ history

This command will give you a list of all the recent commands that you have used in termux. 

Check your username:


$ whoami

This will show the your user-name.

Check your termux usage time:

$ uptime 

This will show, how much time you have spent 
Using termux. 

Check your kernel information in termux:


$ uname -a

This will show you information about your system as well as You can also check your Architecture using this command. 

Check your memory Usage in termux:

$ free -h -t

This will show you the amount of free and used memory in the system. 


I hope,you like this command please share it.. 


Again for you Termux basic commands 
Tutorial part:1
link: https://fttechno.blogspot.com/2022/09/how-to-use-termux-basic-commands.html

Thank you guys ☺️☺️

Comments

Popular posts from this blog

How to Hack WiFi Password in Termux.

How to install emoji in termux.