Read this whole guide offline with no ads, for a very low price!
Click Here!

Custom Search







Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 7: History, Installing and Use of the MacOS
      9  Using the UNIX Terminal

Previous Topic/Section
Using the UNIX Terminal
Previous Page
Pages in Current Topic/Section
1
Next Page
Other Commands
Next Topic/Section

Listing Files and Directories - ls

ls is used to list files and directories. There are options that are more extensive available. They can be found by typing “man ls” and reading the manual page

In addition, it helps to know what you are seeing by using ls, so here is the each files and folders identifier.

Following the file name, there are three characters, identifying owner privileges, group privileges and other privileges.

  1. If r, the file is readable; if -, it is not readable.

  2. If w, the file is writable; if -, it is not writable.

  3. The first of the following that applies:
    • S If in the owner permissions, the file is not executable and set-user-ID mode is set. If in the group permissions, the file is not executable and set-group-ID mode is set.

    • s If in the owner permissions, the file is executable and set-user-ID mode is set. If in the group permissions, the file is executable and set-group-ID mode is set.

    • x The file is executable or the directory is searchable, but cannot be altered.

    • - The file is neither readable, writable, executable, nor set-user-ID nor set-group-ID mode, nor sticky. (See below.)
These next two apply only to the third character in the last group (other permissions).
    • T The sticky bit is set (mode 1000), but not execute or search permission. (See chmod(1) or sticky(8).)

    • t The sticky bit is set (mode 1000), and is searchable or executable. (See chmod(1) or sticky(8).)

Modes may be absolute or symbolic. An absolute mode is an octal number constructed by or using the following values:

  • 4000 set-user-ID-on-execution

  • 2000 set-group-ID-on-execution

  • 1000 sticky bit, see chmod(2)

  • 0400 read by owner

  • 0200 write by owner

  • 0100 execute (or search for directories) by owner

  • 0070 read, write, execute/search by group

  • 0007 read, write, execute/search by others

The read, write, and execute/search values for group and others are encoded as described for owner.


Previous Topic/Section
Using the UNIX Terminal
Previous Page
Pages in Current Topic/Section
1
Next Page
Other Commands
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.