Tags: find

Sort by: Date / Title /

  1. 5 years ago by spirit
    1. perl -ple 's/num/$n++/e' filename
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2150"></script>
  2. 6 years ago by spirit
    find / -mtime 2 -o -ctime 2
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2113"></script>
  3. 6 years ago by spirit
    1. find / -perm -0002 -type d -print
    2. find / -perm -0002 -type f -print
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2112"></script>
  4. sponsorised links
  5. 6 years ago by spirit
    Great for finding effects of make install
    1. find / -cmin -5
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2111"></script>
  6. 6 years ago by spirit
    1. find / -size +10000000c -printf "%15s %pn"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2110"></script>
  7. 7 years ago by koudou
    Astuces très simples mais toujours utiles :
    
    - Rechercher/remplacer une occurence dans toute une série de fichiers :
    find mon_repertoire -type f -exec sed -i 's/occurence/remplacement/g' {} \;
    
    - Supprimer les lignes contenant une occurence dans une série de fichiers :
    find mon_repertoire -type f -exec sed -i 's/occurence/d' {} \;
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2089"></script>
  8. 7 years ago by spirit
    Il faut avoir un backup de base tel qu'il y ait un dossier par base de donnée, un fichier SQL compressé par table. "-P 4" désigne le nombre de core.
    1. find -print0 | xargs -0 -n 1 -P 4 -I {} sh -c "zcat '{}' | mysql mydatabase"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2071"></script>
  9. 8 years ago by spirit
    1. find . -name .svn -prune -o -print | xargs chown www-data:www-data
    2.  
    3. #Exclude another directory (cache)
    4. find . -name .svn -or -name cache -prune -o -print | xargs chown www-data:www-data
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1417"></script>
  10. 9 years ago by xarkam
    1. # Change les droits des répertoires et sous répertoires du dossiers courant
    2. # Changer la directive -type d par -type f pour ne changer que les droits des fichiers
    3. find -type d -exec chmod 770 {} \;
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/847"></script>
  11. 9 years ago by spirit
    1. du -S / | sort -nr | head -n50
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/565"></script>

First / Previous / Next / Last / Page 1 of 2 (13 posteets)