List files and directories The ls command is used to list files or directories in Linux and other Unix-based operating systems. Example ls Demo