 |
|
Oracle Tips by Burleson |
Delete files
You can use the rm (remove) command to delete a file;
referencing the file either via a fully qualified path or via a
relative path. You can also use wildcard symbols (*, ?) to delete
files with similar names. Here are some examples:
Directory:~
$ rm /home/tclark/touch1.fil
Directory:~
$ ls
examples touch2.fil
Directory:~
$ rm touch2.fil
Directory:~
$ ls
examples
Directory:~
$ touch touch1.fil touch2.fil touch3.fil recreate files
Directory:~
$ ls
examples touch1.fil touch2.fil touch3.fil
Directory:~
$ rm touch?.fil use wildcard feature (? matches anything)
Directory:~
$ ls
examples
Directory:~
$
The above book excerpt is from:
Easy Linux
Commands
Working Examples of Linux Command Syntax
ISBN:
0-9759135-0-6
Terry Clark
http://www.rampant-books.com/book_2005_1_linux_commands.htm |