Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

Listing file details

Tech Computer Center logo

If you would like more information about each file, use the -l option. Here is an example:

    % ls -l
    total 3
    -rw-rw-rw-   1 john     1659    386 Feb  3 08:15 groceries
    -rw-r--r--   1 john     1659     97 Mar 10 23:46 schedule
    -rw-------   1 john     1659    123 Mar 11 13:39 todo
This sample output shows three files. The fields on the first line are:
  1. The first column is - for normal files.
  2. -rw-rw-rw shows the current permissions for the file.
  3. The digit 1 shows the number of links to the file. This is almost always 1.
  4. The next field, john, shows the account name of the owner of the file.
  5. 1659 is the ID code of the group that owns the file.
  6. 386 is the size of the file in bytes.
  7. Feb 3 08:15 shows the time and date when this file was last changed.
  8. The name of the file comes last.

Next: Finding hidden files
See also: Finding out what files you have; Organizing your files; Controlling access to your files
Previous: Using ls command options
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman, john@nmt.edu
Last updated: 1995/12/04 19:39:34 UT
URL: http://www.nmt.edu/tcc/help/unix/ls-l.html
QR two-dimensional bar code