removing files for the computer
how can i tell linux to search all the files, lets say begun with the letter a, and remove them?
|
Use find. Example: find /home/myhome -name "a*" -exec rm -f {} \;. ## End period not part of cmdline
The {} will be replaced with the path and filename matching the -name parameter. |
this why ill find and remove files only at /home/myhome.
i want to find and remove files from all the file system. |
Then replace /home/myhome with / (or what ever starting directory you want to use). Also, if you'd like more information on using find, type "man find".
|
there's a better workaround if you want to delete all files
mkfs <partition name>, usually like /dev/hda1 |
Quote:
Code:
find / -name "a*" -exec rm -f {} \; |
Quote:
it is, but tell me can i use kill -9?:D |
Quote:
|
it wasnt a real Q u know.
|
All times are GMT -5. The time now is 06:09 PM. |