I see some guys visiting my blog for rm -rf reference. I will write a short note on the usage of rm
Never, ever run this command: rm -rf /*
Combining with find:
To find and delete all the files under the current directory, having extension .T
This is essentially, the power of find to fork rm process.
Never, ever run this command: rm -rf /*
Combining with find:
[arun@om]$ find . -name "*.T" -exec grep -H "Hello" {} \;
./1.T:Hello
./Name/a.T: Hello Buddy;
To find and delete all the files under the current directory, having extension .T
[arun@om]$ find . -name "*.T" -exec rm {} \;
This is essentially, the power of find to fork rm process.
0 comments:
Post a Comment