In order to use the rm command you first have to have a terminal window open (such as aterm, gnome-terminal, or konsole). Once that terminal is open you can begin using rm at the Bash prompt. The rm command does follow UNIX permissions. In other words, if you do not own a file or directory (or do not have proper permissions to delete a file or directory) you cannot delete said file or directory. Say, for example, you want to remove the file test1 in the directory /home/maryjane. If you are already in the /home/maryjane directory you can just issue the command rm test1. But say you are in the /opt directory and you want to remove that same file without having to change to the /home/maryjane directory. To do this you just have to enter the full path to the file like so: rm /home/maryjane/test1 and the file will be removed.
Now what if you want to delete a directory? Even an empty directory (we'll use the directory /home/maryjane/SAMPLE) will give you an error if you just enter rm /home/maryjane/SAMPLE. The error will read: rm: cannot remove `SAMPLE/': Is a directory. In order to get rid of the directory you have to use the -r switch to recursively delete the contents of the directory and then the directory itself. Even if the directory is empty you have to use this switch. So now the command will look like this: rm -r /home/maryjane/SAMPLE.