Listing the contents of a file through Linux is possible by using the ls command. Ls—list— is the command used for listing the directory contents in Linux. By default, the ls command demonstrates the content of the current directory. The ls command is also available at EFI (Extensible Firmware Interface) level.