About
The core directory-listing command, and it ships with every Unix-like system. Land in an unfamiliar folder and run it first. Its flags set the ordering, the recursion and how much metadata appears.
Install it
Included with Termux
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
6 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
ls -la List every entry, hidden dotfiles included. You see permissions, owner, size and time. ls -lh Same listing, friendlier sizes. 4.0K and 1.2M replace raw byte counts. ls -lt Order entries by modification time, newest first. The freshest items sit at the top. ls -R Recurse into every subdirectory. Prints the whole hierarchy, level by level. ls --color=auto Colour coding, but only on a terminal. Directories, executables and archives get different tints. ls -1 One entry per line. Handy when you pipe the result onward. Worked example
Run ls -lh and this is what you should see.
$ ls -lh
total 24K
drwx------ 3 u0_a123 u0_a123 4.0K Oct 24 09:15 storage
-rw-r--r-- 1 u0_a123 u0_a123 812 Oct 23 21:04 notes.txt
drwxr-xr-x 2 u0_a123 u0_a123 4.0K Oct 20 11:30 scripts Developed by
GNU Project .