Unix/Linux systems has the program "ls" to list files. At the prompt type:

# ls

and you will see a list of files. Depending on the settings in your account, you may see files with color-coded names.

In order to see details, there are many options you can use with the ls command. To find out, type

# man ls

On my linux system, and in my account on KU Unix system, I've installed a GNU version of the ls program that is pretty nice, and you may not have access to that unless you build it. Nevertheless, there are many standards, like

# ls -la

That should cause it to print out details, such as:


drwxrwxr-x    3 pauljohn pauljohn     4096 Dec 11  2001 valinux
-rw-rw-r--    1 pauljohn pauljohn     5496 Nov 14  2001 unemployment.html

The permissions for each are displayed. The first one is a directory, which you can see by the d in the first character. The second is a file.

If you need to see only files that start with "p", do

ls -la p*

If you want a less detailed list that tells you file sizes and you want one file per line, do

ls -s1 

(here I have a number one after the s)

-- PaulJohnson - 07 Dec 2002

Unixtips.ListFiles moved from Unixtips.ListingFiles on 07 Dec 2002 - 21:57 by PaulJohnson - put it back
 
|Powered by TWiki