Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Produces output similar to this:

Image RemovedImage Added

There are two three sub-directories under the /stor/work/CBRS_unix directory: fastq, test and unix, each with their own sub-directories and files. Again, notice how tree colors file with the extension .gz differently. These are FASTQ files, compressed using the gzip protocol, produced by a Next Generation Sequencing (NGS) run in our Genome Sequencing and Analysis (GSAF) core facility.

...

  • character 1 describes the file type (d for directory, - for regular file, l for symbolic link)
  • the remaining 9 characters are 3 sets of 3-character designations
    • characters 2-4: what the owning user account can do
    • characters 5-7: what other members of the associated Unix group can do
    • characters 8-19: what other non-group members (everyone) can do

Each of the 3-character sets describes if read ( r ) write ( w or s ) and execute ( x ) actions are allowed, or not allowed ( - ).

  • read ( r ) access means file contents can be read, and it can be copied
  • write ( w or s ) access means a file's contents can be changed, and directory contents can be modified (files added or

...

  • deleted)
  • execute ( x )
    • For files, execute ( x ) means it is a program that can be called/executed (e.g. /usr/bin/ls, the file that performs the ls command)
    • For directories, execute ( x ) means directory operations may be performed/executed
      • the directorycan be listed and changed into

Examples:

ls -l ~/haiku.txt

haiku.txtdescription

Image Added

  • dash ( - ) in position one signifies this is a regular file
  • rw- for owner allows read and write access
  • r-- for group permits only read access
  • --- for everyone means no access allowed

ls -l /usr/bin/ls

/usr/bin/ls
description

Image Added

  • /usr/bin/ls is the program that performs the ls command
    • root (the master admin account) is the owner, in the root group
  • dash ( - ) in position one signifies this is a regular file
  • rwx for owner allows read, write and execute
  • r-x for group permits read and execute
  • r-x for everyone permits read and execute

ls -ld ~/docs (-d says to list directory information, not directory contents)

docs
description

Image Added

  • d in position one signifies this is a directory
  • rwx for owner allows read, write and "execute" (list for directories)
  • r-x for group permits read and "execute" (list)
  • --- for everyone means no access allowed