Welcome to KB center
< All Topics


ls This command lists directory contents. If you’ve used the Windows command prompt, then you should know that the command dir is used to list the contents in a directory. This is what the ls command does in Linux – it lists files and directories. Some versions may support color-coding. The names in blue represent the names of directories.

The command ls -l | more – helps paginate the output so you can view page by page. Otherwise the listing scrolls down rapidly. You can always use ctrl + c to return to the command line.

Table of Contents