ls with no arguments shows the contents of the current directory. The three options I use the most:
| Option | Does |
|---|---|
ls -l | long listing: permissions, owner, size, date |
ls -a | all files, including hidden ones (names starting with a dot) |
ls -lrt | long listing, sorted by time, reversed, so the newest file is last |
$ ls -lrt old mid new
-rw-r--r-- 1 y.akhras 1049089 0 Jan 1 2026 old
-rw-r--r-- 1 y.akhras 1049089 0 Jun 1 00:00 mid
-rw-r--r-- 1 y.akhras 1049089 0 Nov 4 17:33 new
ls -lrt is great after you’ve changed something: the file you just touched is at the bottom, right above your prompt. (The odd group number is because I tested in Git Bash on Windows. On RHEL you see a group name.)