ls
Linux · Directories · available in the simulator
What it does
List directory contents.
Syntax
ls [opciones] [archivo...]
Options and parameters
-lUse a long listing format: permissions, owner, size, and date.
ls -l-aShow hidden files starting with a dot.
ls -a-RList subdirectories recursively.
-hPrint human-readable sizes (K, M, G); used with -l.
ls -lh-tSort by modification time, newest first.
ls -lt-SSort by file size, largest first.
-ALike -a, but do not list implied . and ..
-rReverse order while sorting.
-1List one file per line.
-dList directories themselves, not their contents.
ls -ld /etc-FAppend indicator to names: / directory, * executable, @ link.
-iPrint the index number (inode) of each file.
--colorColorize the output: auto, always, or never.
ls --color=auto
Usage examples
ls /home/adminls /etc/network -lls ~ -als / -Rls /home/admin -lals -lahls -la /etcls -als -lls -lhls -ltls -ld /etcls --color=auto