The closest I've gotten is
# rm /path/to/directory/*.*
but that doesn't work for files that don't have an extension...
|
The closest I've gotten is
but that doesn't work for files that don't have an extension... |
|||
|
|
|
Linux does not use extensions. It is up to the creator of the file to decide if he wants the name to have an extension. Linux looks at the 1st byte to figure out what kind of file it is dealing with. To remove everything in a directory use:
You can use the |
|||||||||||||
|
|
If you also want to remove all subdirectories and the directory itself, you can use |
|||
|
|
|
If you want to delete only files in /path/to/directory you can do
or
You can do loads with |
|||||||||||||
|
|
You can |
||||
|
|