What is the ls command in Linux? - Educative The ls command in Linux is used to list the files of a given directory The ls command comes as part of the GNU Core Utilities package, available on all Unix-like operating systems
ls - list contents of directories For each directory named, ls lists information for each file in that directory For each file named, ls lists information for that file If name is , ls lists the contents of the root directory When the command has no arguments, ls lists the contents of the working directory