next up previous contents
Next: screen Up: Unix Commands Previous: cp   Contents

rm


The rm stands for ``remove.'' You may use this command to delete files. As with copying, if you are removing a directory, you need to use the ``-r'' argument.

Example:

[jdpoisso@legio data]$ ls 
architechture.c  image        interface.h  new_image 
architechture.h  interface.c  main.c       old_main.c 
[jdpoisso@legio data]$ rm old_main.c 
[jdpoisso@legio data]$ rm image/old_main.c 
[jdpoisso@legio data]$ rm -r new_image 
[jdpoisso@legio data]$ ls 
architechture.c  architechture.h  image  interface.c  interface.h  main.c 
[jdpoisso@legio data]$



2010-08-27