Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.
Now we start with basic commands
Firstly, after installing and everytimes start we to given thes command.
$ apt update
$ apt upgrade
After this we have to give storage permission to Termux by hitting below command :-
$termux-setup-storage
Then again,
$apt update && upgrade
If you want to know list of packages which used in termux normally hit below command,
$ apt list
Information about packages
$apt show <package name>
(note:- We can use also pkg instead of apt)
For going to internal storage:-
$ cd /sdcard
Show the files in directory
$ ls (without hidden files)
$ ls -a (With hidden files)
For version checking:-
$ ls --version
Details of folders:-
$ ls -lh
For creating files:-
$ touch <files.Extensions>
$ touch BharamGyani.txt
Display data of file:-
$ cat <files.Extensions>
$ cat bharamgyani.txt
For check current directory:-
$ pwd
For creating folders or directory:-
$ mkdir <folder name>
$ mkdir rohan
$ ls
For open folder:-
Go to directory
$ cd rohan
For back to directory:-
$ cd ..
For going to root directory:-
$ cd /
Now you can also copy, cut and past the files on termux, have a look.
For files :-
$ cp <file name> <destination >
$ cp rohan.txt sdcard
$ cp rohan.txt sdcard
For folders :-
$ cp -r <foldername> <location>
For home directory
$ cp rohan.txt $home
For move:-
$ mv <filename> <location>
For folders :-
$ mv -v <folder name> <location>
$mv -v rohan /sdcard/DCIM
$mv -v rohan /sdcard/DCIM
For removing the files and folders
For files :-
$ rm <file name>
$ rm helo.py
For folders :-
$ rm -rf <folder name>
If file and folder in same directory copy it :-
$ cp <file name> <folder name>
Check the archeteture of device :-
$ uname -m
For kernel info:-
$ uname -a
For checking ip (local ip and all network) :-
$ ifconfig
(note:- For using ifconfig, firstly install busybox and net-tool simply hit below command :-
$ pkg install busybox net-tools)
For checking public ip:-
$ curl ifconfig.me
For checking Internet working or not:-
$ ping google.com
For given executive permission to a file:-
$ chmod +x <file name>
For given multiple permissions in directory :-
$ chmod +x *
For checking termux running well or not just hit the command, A train running on screen if not that's means something went wrong :-
$pkg install sl
$sl
$sl
End...
Termux has not end point we can do lots of thing here these are the basic command of termux after this we will start for use of lot of termux packeges.
Thanks to all for coming.












