Detailed directory lists with ls


Article from Issue 60/2005

The ls command lists files at the command line and gives you many useful details about file properties. With or without colors, this command keeps you on top of your files.

The ls command is hard to beat when it comes to options and parameters – the manpage reads like a bestseller. As a user, you can select from innumerable options to decide what to show and how to format the display. What’s in There?

Just typing ls at the prompt displays the current directory contents, but you can supply a relative or absolute path to view the content of another directory:

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command Line

    This month, we’ll show you how to decorate your console and give it a fresh new look by adding color to the command line with ANSI escape sequences.

  • Command Line: Data Flow

    Working in the shell has many benefits. Pipelines, redirectors, and chains of commands give users almost infinite options.

  • Creating ICC Color Profiles

    An ICC color profile ensures that an image always looks the same – regardless of the output device. The free Argyll CMS software package lets you create color profiles in Linux.

  • Command Line: tree

    The tree command can provide a clear view of all your files and directories and offers a few advantages over the usual ls command.

  • File Management

    We give you an overview of commands for moving, editing, compressing, and generally manipulating files.

comments powered by Disqus

Direct Download

Read full article as PDF:

Commandline_ls.pdf (198.38 kB)