Great! You want to learn the basics (beginner-level content) of all your Markdown files (1.md to 39.md) using Termux, a terminal emulator for Android that gives you a Linux-like environment.
Here’s how you can do it step-by-step:
✅ Step 1: Install and Open Termux
If you haven’t already:
- Download Termux from F-Droid.
- Install it, then open the app.
✅ Step 2: Update and Upgrade Packages
Run this command to ensure everything is up-to-date:
pkg update && pkg upgrade -y
✅ Step 3: Install Required Tools
We’ll use basic Linux tools like cat, less, or nano to read and learn from your .md files.
Install them if not already installed:
pkg install coreutils less nano
✅ Step 4: Navigate to the Folder Containing Your .md Files
Assuming your files are in the ~/storage/downloads folder or similar, use cd to navigate there.
Example:
cd ~/storage/documents
You can list the contents to verify:
ls
If you don't know where the files are, check with:
find ~ -type f -name "*.md" | head -n 5
This will show you where some .md files are located.
✅ Step 5: View One File at a Time
Option A: Use cat to view content
To view one file:
cat 1.md
But if the file is long, it may scroll off screen quickly.
Option B: Use less to scroll through content
less 1.md
Use:
↑ ↓ keys to scroll,
q to quit.
Option C: Use nano to edit/view
nano 1.md
Press CTRL+X to exit nano without saving changes.
✅ Step 6: Loop Through All Files (Optional)
If you want to loop through all files from 1.md to 39.md, you can use a simple shell loop:
for i in $(seq 1 39); do echo "=== Viewing file $i.md ==="; cat "$i.md"; echo; read -p "Press Enter to continue..."; done
Or use less per file:
for i in $(seq 1 39); do echo "=== Viewing file $i.md ==="; less "$i.md"; done
This will help you go through each file one by one.
✅ Step 7: Take Notes (Optional)
If you want to take notes while learning, create a new file:
nano notes_summary.md
Then type your key points as you go through each file.
🔁 Summary of Useful Commands
| Task | Command |
|---|
| List files | ls |
| View file | cat 1.md or less 1.md |
| Edit/view file | nano 1.md |
| Loop through all files | for i in $(seq 1 39); do less $i.md; done |
💡 Tips
-
If you're on Android 10+, storage permissions might be an issue. Run this if needed:
termux-setup-storage
-
This will ask for permission and link your internal storage to Termux under ~/storage/.
Let me know if you'd like to merge all files into one, search inside them, or quiz yourself based on their content!