next up previous

1.5.5 ls

Lists the files and directories under the current working directory.

ls -F lists files and directories under the current working directory and gives more information about the files and directories. Any listed names which are followed by a / are directories. Any listed names followed by a * are executable files. Any listed names followed by an @ are symbolically linked files or directories (located elsewhere).

Suppose you are in your home directory and you type ls -F, and this is what appears:
     a.out*   jics/    matmult.m   notHERE@   work.lsp*
     data*    mult.f   notes/      README
Two subdirectories are jics and notes. Three executable files are a.out, data, and work.lsp. notHERE is a file or directory symbolically linked to your current directory, but located elsewhere.

Notice also that names of files should indicate what the file contains. Program files should be followed with an extension indicating which language was used. For example, use .m for MPL on the MP-2, .f for FORTRAN, and .c for C, .fcm for CMFortran on the CM-5, and .tex for LATEX text files, etc.