Solaris Advanced User's Guide

Listing Files (ls)

Now list the file with the ls command to verify that you've created it:


$ ls tempfile
tempfile 

When you type the ls command by itself, it lists all the files in your current location. If you type the ls command with a specific file name, it lists only that file, if the file exists.

For more information on listing files, see the man page ls(1).