systemes:linux:fichiers

LINUX : Les fichiers

cat /etc/ssh/sshd_config | grep -v '#' | sed '/^$/d'
cat httpd.conf | egrep "Directory|Alias"
cat conf.d/mod_proxy.conf | egrep "Proxy" | egrep -v "Reverse|'#'" | awk '{print $2}'

tri classique

 du -S | sort –n

tri avancé

fichier=$(mktemp) ; find -L -maxdepth 1 \! -iname '.' -type d -exec du -Dhs '{}' \; | sed 's@^\(.*[[:digit:]]\+\)\([KMG]\)@\1\t\2io@' > ${fichier} ; for unit in G M K ; do sed -n "/${unit}io/p" ${fichier} |sort -gr ; echo ; done ; rm ${fichier}

Disk Space ( par Telnes)

  • Utilitaire en ligne de commande pour voir l'utilisation de disque par les fichiers
  • ds -h
    Return the size of folder/file in current dir
    Option:
     -g Giga
     -m Mega
     -k Kilo
     -o other
     -h for help

Afficher les nouveaux fichiers en temps reel

Retour

Vous pourriez laisser un commentaire si vous étiez connecté.
  • systemes/linux/fichiers.txt
  • Dernière modification: 2019/02/06 14:03
  • (modification externe)