About Termux Emulator

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. You can go here for more information.
 
Termux File and Directory Creating :

1: touch [file name] – used to create new file
2 : cat > [file name] – used to create new file with content
3 : echo “hello world” > [file name] – create new file with content
4 : cat >> [file name] – Add content in existing file
5 : mkdir [name] – create a directory or folder


Termux Usage of CD Commands :
 
1 : cd – used to change directory
 
2 : cd / – back to root directory
 
3 : cd .. – change current directory to parent directory
 
4 : cd – – move one directory back from current location
 
5 : cd — – show last working directory from where we moved
 
6 : cd ~ – move to users home directory from anywhere
   

 
Termux More Useful Commands :
 
1 : rm – remove or delete files
 
2 : rm [filename] – remove any text files
 
3 : rmdir [dir name] – remove any directory
 
4 : rm -rf – force remove a directory or a folder
 
5 : rm -r [name] – delete a directory called name
 
6 : pwd – it show your current working directory
 
7 : wget [url] – install tool , apt install wget
 
8 : git clone [url] – install any tools with git clone, apt install git
 
9 : curl -O [url] – apt install curl
 
10 : apt search [qurey] – use to get available packages
 
11 : pkg search [qurey] – find a package
 
12 : apt remove [package name] – uninstall / remove a package
 
13 : apt show – view package information