Index List

28 May 2010

Centos Linux - Linux Commands Training Quick Tips - How to Understand Linux Directory and File Listings - Red Hat

Interpreting Linux Agenda and Book Listings - From the Achievement of the Linux ls Command

Running the Linux ls command at the Linux command band alert shows a advertisement of directories and files.

The afterward is an archetype of a advertisement at the carapace alert of a agenda called bin

  • drwxr-x--- basis basis May bin
The name of the agenda bin appears at the far right.

At the larboard of this name is the time . If the agenda were not created this year the year would arise in abode of the time. Next at the larboard is the date May . At the larboard is the admeasurement of the directory which is bytes K .

At the far larboard is a d and this indicates that the account is a directory.

The added items apparent above such as rwxr-x--- basis root are permissions.

The afterward is a Linux ls command achievement archetype of a book called grep. .gz

  • -rw-r--r-- basis basis Jul grep. .gz The name of the book appears at the far appropriate grep. .gz .

At the larboard of the name is the date that the book was created July . At the larboard of that is the admeasurement of the file which is bytes approximately . K .

At the far larboard is a - . This indicates that the account is a file.

The aloft book was created in . If the book was created this year again the time that the book was created in the anatomy of hh mm would arise in abode of the year.

When you run ls command and use the -l option you see a alternation of characters at the larboard of anniversary account in the agenda listing. The table beneath shows the acceptation of the far larboard appearance in a agenda listing.

The Leftmost Characters in a Advertisement from the Achievement of the Linux ls Command

When application the -l advantage of the ls command the - dash for book and the d for agenda arise best generally in the account that is achievement back the ls command is run.

Remember that agenda names accept a d at the far larboard of them and files accept a - .

The Linux concepts apparent aloft administer to Slackware Red Hat Ubuntu Fedora and Debian Linux - and additionally ALL Linux distributions.