ls - list directory content

Usage: ls [options] [<file>...]

Example

sxx
ls -l /

Options

long option short option description
‑‑help ‑h Print help and exit.
‑‑all ‑a List also names starting with ".".
‑‑long ‑l Use long listing format.
‑‑human‑readable ‑m Humam readable size.
‑‑sort=inode ‑I Sort by inode number.
‑‑sort=nlinks ‑N Sort by number of links.
‑‑sort=user ‑U Sort by user name.
‑‑sort=size ‑S Sort by file size.
‑‑sort=time ‑T Sort by file modification time.
‑‑reverse ‑r Reverse sort order.
‑‑fs ‑f Show filesystem number.
‑‑inode ‑i Show inode number.
‑‑access Show access.
‑‑nlinks ‑n Show number of links.
‑‑user ‑u Show the user name of the file owner.
‑‑uid Show the user ID of the file owner.
‑‑group ‑g Show the group name of the file owner.
‑‑gid Show the group ID of the file owner.
‑‑size ‑s Show the size of the file.
‑‑ctime ‑c Show the inode modification time.
‑‑mtime ‑t Show the file modification time.
‑‑atime ‑e Show the file access time.

Implementation

Reference