The answer is ls. In linux and os x, the cli command that can be used to display the name of the current directory is ls. The ls command in Linux is used to display information about files and directories contained within the current working directory