ls
linux ls command – Show files and directories that are not hidden.
➜ ls
![ls](https://www.linuxcommands.site/wp-content/uploads/2020/06/image-19-1024x121.png)
ls -a
linux ls -a command, display all files and subdirectories in the current directory, including hidden “.” And “..” etc.
- ls -a Include directory entries whose names begin with a dot (.).
➜ ls -a
![ls -a](https://www.linuxcommands.site/wp-content/uploads/2020/06/image-20-1024x142.png)
ls -A
linux ls -A command, show all files and subdirectories in the current directory, including hidden files, but excluding . And ..
- ls -A List all entries except for . and … Always set for the super-user.
➜ ls -A
![ls -A](https://www.linuxcommands.site/wp-content/uploads/2020/06/image-21-1024x146.png)
ls -l
linux ls -l command, display detailed information of non-hidden files and directories.
- ls -l List in long format.
➜ ls -l
![ls -l](https://www.linuxcommands.site/wp-content/uploads/2020/06/image-22-1024x293.png)
ls -al
linux ls -al command, display all files and subdirectories in the current directory, including hidden “.” And “..” etc. details.
➜ ls -al
![](https://www.linuxcommands.site/wp-content/uploads/2020/06/image-23-1024x230.png)
ls -lrt
linux ls -lrt command, sort non-hidden files and directories by date from old to new.
- ls -r reverse the order
- ls -t sort by time modified
➜ ls -lrt
![](https://www.linuxcommands.site/wp-content/uploads/2020/06/image-24-1024x352.png)