The ls Command

This section introduces you to the ls command, which enables you to examine the file system and see what files are kept where.

Task 4.1: All About the ls Command

From the examples in the preceding hour, you've already figured out that the command used to list files and directories in UNIX is the ls command.

All operating systems have a similar command, a way to see what's in the current location. In DOS, for example, you're no doubt familiar with the DIR command. DOS also has command flags, which are denoted by a leading slash before the specific option. For example, DIR /W produces a directory listing in wide-display format. The ...

Get Sams Teach Yourself UNIX® in 24 Hours Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.