Basic Commands

It's time to learn some other Unix commands. Most of the following programs take multiple arguments, and some have so many options and formats that an unabridged listing would be pointless. This is a simplified list; you don't need to know all of the details just yet.

ls

The ls command lists the contents of a directory. The default is the current directory. Use ls -l for a detailed (long) listing and ls -F to display file type information (for more on file types and the permissions in the left column, see File Modes and Permissions). Here is a sample long listing:

 total 3616 -rw-r--r-- 1 juser users 3804 Apr 30 2000 abusive.c -rw-r--r-- 1 juser users 4165 May 26 1999 battery.zip -rw-r--r-- 1 juser users 131219 Oct 26 2000 beav_1.40-13.tar.gz ...

Get How Linux Works 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.