GTUTO https://www.gtuto.com/commandes-linux-utiles/ Export date: Wed Apr 30 19:40:24 2025 / +0000 GMT |
Commandes Linux utilesQuelques commandes Linux https://linux-note.com/ 1Recherche♦ find / -size +40000k -type f -exec ls -hl {} ; → sortira tous les fichiers dépassant 40000 Ko ♦ créer un fichier /usr/local/sbin/recherche #! /bin/sh find ./ -name "*" -exec grep -Hn "$1" {} ; --> commande recherche “ma chaine à chercher” dans le répertoire courant et tous les sous répertoire ♦ ls -l /proc/*/fd/ | grep home -> recherche tous les fichiers ouverts dans home ♦ locate ce_que_je_cherche --> recherche sur le nom de fichier installation : apt-get install locate mise à jour updatedb ♦ find . -name "*.bak" -type f -delete -> delete tous les bak répertoire courrant et sous-répertoires . faire un find . -name "*.bak" -type f avant pour vérifier Disques♦ hdparm -i /dev/sda -> affiche toutes les info sur le disque dur physique ♦ hdparm -t /dev/sda -> vitesse lecture du disque LAN♦ ifconfig --> paramètres réseau de base ♦ netstat -laptn voir les ports ouverts -ano processus -lanop + complet CPU♦ cat /proc/cpuinfo --> info cpu
|
Links:
|
Post date: 2016-01-23 12:16:07 Post date GMT: 2016-01-23 12:16:07 Post modified date: 2020-01-17 13:58:07 Post modified date GMT: 2020-01-17 13:58:07 |
Export date: Wed Apr 30 19:40:24 2025 / +0000 GMT This page was exported from GTUTO [ https://www.gtuto.com ] Export of Post and Page has been powered by [ Universal Post Manager ] plugin from www.ProfProjects.com |