rm
From NetBSD Wiki
The rm(1) utility attempts to remove the non-directory type files specified on the command line. If the permissions of the file do not permit writing, and the standard input device is a terminal, the user is prompted (on the standard error output) for confirmation
Contents |
Deleting Files
% rm helloworld.c
to delete all .c files in the current directory
% rm *.c
to delete files beginning with john
% rm john*
to delete files beginning with john and ending with .cvs
% rm john*.cvs
Deleting Directories
Directories can be empty or not empty.
% rm -r mydirectory/
to be more quite use -f
% rm -rf mydirectory/
to be more verbose use -v
% rm -vrf mdirectory/
The trailing slash on the directory-name is optional.
