diff --git a/troubleshooting/linux.md b/troubleshooting/linux.md index 17c25d43e5c5164cad2285637b218eeee4e91ee4..7cb1599fba05b6cc40eab23afed9aa269577cfee 100644 --- a/troubleshooting/linux.md +++ b/troubleshooting/linux.md @@ -1,5 +1,44 @@ ## Gestion de fichiers + + +lsof -p PID (listopenfiles) + +netstat + +screen + + + + + +root@MaarchIntegration1904:~# ls -al /proc/31742/fd +total 0 +dr-x------ 2 root root 0 mai 3 10:39 . +dr-xr-xr-x 9 root root 0 mai 3 10:17 .. +lr-x------ 1 root root 64 mai 3 10:39 0 -> /dev/null +l-wx------ 1 root root 64 mai 3 10:39 1 -> /dev/null +l-wx------ 1 root root 64 mai 3 10:39 2 -> /var/log/apache2/error.log +lrwx------ 1 root root 64 mai 3 10:39 3 -> socket:[52891] +lrwx------ 1 root root 64 mai 3 10:39 4 -> socket:[52892] +lr-x------ 1 root root 64 mai 3 10:39 5 -> pipe:[52023] +l-wx------ 1 root root 64 mai 3 10:39 6 -> pipe:[52023] +l-wx------ 1 root root 64 mai 3 10:39 7 -> /var/log/apache2/other_vhosts_access.log + + + +ctr-c : arret du processus +ctr-d : fin de saisie (fermeture entrée standard) +ctr-z : detacher un process (bg|fg : backgroud|forground) +ctr-s : stop du pocesus (pause) +ctr-q : restart le process (arret de la pause) + + +lancer des process +nohup/detach + +ctr+Z (avec le numero de job) bg detach + kill : laisse le temps au processus de ce terminer kill -9 : tue le processus immediatement