Finally, use the rm (remove) command to delete copyfile, and verify the result with the ls command:
$ rm copyfile $ ls *file emptyfile |
Once you delete a file, it is gone for good. Unless there is a backup copy, the file cannot be restored. Be careful when using the rm command, and be particularly careful when using rm with the wildcard character (*). Files removed with rm cannot be recovered.
For more detailed information on the rm(1) command, refer to the man Pages(1): User Commands.