Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 2803media/9251716 to your computer and use it in GitHub Desktop.

Select an option

Save 2803media/9251716 to your computer and use it in GitHub Desktop.
search ssh files taille fichier
grep -r "social.png" *
#recherche d'un fichier sur tout le serveur
find / -name gpu.mbtiles
#sans les lignes
grep -lr "simplexml_load_file" *
grep -lr "} ?>" *
#sans le path du fichier
grep -h FOO /your/path/*.bar
#sans les folders
grep -l "} ?>" *
#afficher les fichers en forme humaine et par tri date
ls -tr -halt
#recherche humaine avec date
ls -t -halt | grep parcelle
#En reverse
ls -haltr
#recherche nom de fichier
find . -name '*object-cache.php'
http://osxdaily.com/2017/02/02/ls-sort-by-date/
#compter le nombre de fichiers de moins de 24 dans un rep
find -mtime -1 -ls | wc -l
#cadastre nbr de fichiers de moins de 60j
cd /home/lecadastre/public_html/wp-content/themes/codium-dn/datas/dvf/2018/
find -mtime -60 -ls | wc -l
#avant mise à jour
tar -zcvf optimize.tar.gz optimize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment