Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
findprune [2016/05/25 15:41]
yassine chaouche created
findprune [2016/05/25 15:44]
yassine chaouche
Line 3: Line 3:
  
 <​code>​ <​code>​
-find -name vmail -prune -o -name "​*mysql*"​+find /var/ -name vmail -prune -o -name "​*mysql*"​
 </​code>​ </​code>​
  
-Search the current ​directory and :  +Search the /var/ directory and :  
- - If the name of the current item is vmail then prune it (exclude its children) +  - If the name of the current item is vmail then prune it (exclude its children), because I'm sure the thing I'm looking for isn't there and the directory has over a million files 
- - Or (-o) print the name of anything that looks like "​mysql"​+  - Or (-o) print the name of anything that looks like "​mysql"​
  
 +Proof that the directory has over a million files
 +
 +<​code>​
 +root@messagerie[CHROOT][10.10.10.19] /var/vmail # find -type f | wc -l
 +1114924
 +root@messagerie[CHROOT][10.10.10.19] /var/vmail # 
 +</​code>​
 +
 +That's 1 114 924 files.
 ---- ----
  
 contact : [[http://​twitter.com/​ychaouche|@ychaouche]] yacinechaouche at yahoocom contact : [[http://​twitter.com/​ychaouche|@ychaouche]] yacinechaouche at yahoocom
  

QR Code
QR Code findprune (generated for current page)