dir, short for directory, is a shell command for listing file system contents; files and directories. Arguably, the command provides the same essential functionality as the ls command, but typically the two commands are described as notably separate concepts, possibly since ls is implemented from a codebase that shars more history than many dir implementations.
The command is often implemented as internal in the operating system shell instead of as a separate application as many other commands are.