Create a text file in termux
1. first, you have to download a package name nano. Type on termux pkg install nano press y when asking for confirmation.
2. type nano on the terminal.
3. type anything you want I am typing hello world.
4. Press CTRL+X and press Y to save the file.
5. Give the file name anyname.txt and press enter.
6. Type ls command to see your directory.
⚡️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.
e.g: cat data.txt
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