The ls command displays a list of files or directories in Linux and other Unix-based operating systems. The ls command will default list all files and folders in the current directory, much like the File explorer or Finder in a graphical user interface.