File and directory commands help you control everything inside Termux. With these commands, you can open files, check content, search files, and manage folders without any difficulty.
Termux File & Directory Commands List
| Command | Use | Example |
|---|---|---|
| nano | Edit file (simple editor) | nano file.txt |
| vim | Advanced file editor | vim file.txt |
| cat | View file content | cat file.txt |
| less | View large files | less file.txt |
| head | Show first lines | head file.txt |
| tail | Show last lines | tail file.txt |
| find | Search files | find . -name file.txt |
| locate | Find files quickly | locate file.txt |
| chmod | Change permission | chmod 777 file.txt |
| chown | Change ownership | chown user file.txt |
| du | Check folder size | du -sh folder |
| df | Check disk space | df -h |
| stat | File details | stat file.txt |
| file | File type info | file file.txt |
These commands help you manage files and folders easily in Termux. After learning these, you can work faster and handle files like a pro.
Quick Examples
Edit a file:
nano test.txtView file content:
cat test.txtSearch a file:
find . -name test.txtCheck disk space:
df -h


