Sample Usage
The following example demonstrates the output of the ls command given two different arguments:
$ pwd /home/fred $ ls -l drwxr--r-- 1 fred editors 4096 drafts -rw-r--r-- 1 fred editors 30405 edition-32 -r-xr-xr-x 1 fred fred 8460 edit $ ls -F drafts/ edition-32 edit*(x)In this example, the user fred has a directory named drafts, a regular file called edition-32, and an executable named edit in his home directory. ls uses unix file permission notation to indicate which users or groups are allowed to access each file or directory.
drwxr--r-- 1 fred editors 4096 Mar 1 2007 draftsThis means that the letters behind the file descriptor (d), which indicates a folder or 'directory', list three characters to indicate permissions for the current user (rwx), then the group to which the file belongs (r--), and the rights of others (r--).
'drafts' is a directory (d), the user has the right to read (r) write (w) and execute (x): rwx, group members have (r--), meaning read only, and others have (r--), meaning read only access. See unix file permission notation for a more detailed description.
Read more about this topic: Ls
Famous quotes containing the words sample and/or usage:
“As a rule they will refuse even to sample a foreign dish, they regard such things as garlic and olive oil with disgust, life is unliveable to them unless they have tea and puddings.”
—George Orwell (19031950)
“I am using it [the word perceive] here in such a way that to say of an object that it is perceived does not entail saying that it exists in any sense at all. And this is a perfectly correct and familiar usage of the word.”
—A.J. (Alfred Jules)