Solaris Advanced User's Guide

Deleting Files (rm)

Use the rm (remove) command to delete copyfile, and verify the result with the ls command:

$ rm copyfile
$ ls *file

Caution – Caution –

Be careful when you use the rm command, and be particularly careful when you use rm with the wildcard character (*). You cannot recover files that you have removed with rm.

For more information on the rm(1) command, refer to the man Pages(1): User Commands.