Files & Transfer Android 5.0+ Risk: READ_ONLY

View First N Lines of File

Outputs the beginning lines of a text or log file.

Command Syntax

adb shell head -n 20 /proc/meminfo
Generic Syntax: head -n <N> <file>

Real-World Usage Examples

Execute command
Outputs the beginning lines of a text or log file.
adb shell head -n 20 /proc/meminfo