All Ethical Hacking Networking Programming OSINT

Termux File & Directory Management Commands List

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

CommandUseExample
nanoEdit file (simple editor)nano file.txt
vimAdvanced file editorvim file.txt
catView file contentcat file.txt
lessView large filesless file.txt
headShow first lineshead file.txt
tailShow last linestail file.txt
findSearch filesfind . -name file.txt
locateFind files quicklylocate file.txt
chmodChange permissionchmod 777 file.txt
chownChange ownershipchown user file.txt
duCheck folder sizedu -sh folder
dfCheck disk spacedf -h
statFile detailsstat file.txt
fileFile type infofile 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.txt

View file content:

cat test.txt

Search a file:

find . -name test.txt

Check disk space:

df -h