After learning basic Termux commands, the next step is to use advanced commands that make your work easier and faster. These commands are used for searching, sorting, and managing data directly from the terminal.
Advanced Utility Commands List
| Command | Use | Example |
|---|---|---|
| echo | Print text | echo Hello |
| grep | Search text in file | grep "hello" file.txt |
| sort | Sort lines | sort file.txt |
| uniq | Remove duplicate lines | uniq file.txt |
| wc | Count lines/words | wc file.txt |
| cut | Extract text columns | cut -d " " -f1 file.txt |
| tr | Replace characters | tr a-z A-Z < file.txt |
| history | Show command history | history |
| alias | Create shortcut | alias ll='ls -la' |
| which | Show command path | which python |
| whereis | Locate command files | whereis python |
| man | Show manual | man ls |
| yes | Auto input repeat | yes |
These commands help you work faster and smarter in Termux. They are very useful for automation, searching, and handling data in terminal.
Quick Examples
Search text inside file:
grep "error" log.txtCount lines in file:
wc -l file.txtSort file:
sort names.txtCreate shortcut command:
alias ll='ls -la'