397 liens privés
Be nice.
lsof +D /var/log
lsof, le couteau suisse :)
voir aussi https://jeekajoo.eu/links/?Kaq3Jg (EDIT: et je vois que la commande en question y était déja mais je ne m'en souvenais plus)
"""
apt-get install auditd
auditctl -a task,always
ausearch -i -sc execve | grep foobar
"""
"""
psDooM is a process monitor and manager for *nix systems. It could be considered a graphical interface to the 'ps', 'renice', and 'kill' commands. psDooM is based on XDoom, which is based on id Software's 'Doom'.
"""
Chaque personnage est associé à un process unix.
Le tuer revient à faire un kill -9 dessus.
Je pense que si tu tues le PID 1 t'as perdu (ou gagné. Ca dépend comment tu vois les choses). ;)
Screenshots: http://psdoom.sourceforge.net/screenshots.html
EDIT: haha sourceforge.net appartient maintenant à la blacklist "Badware risks" qui est notamment utilisée par uBlock origin.
"""
No no no. Don't use kill -9.
It doesn't give the process a chance to cleanly:
1) shut down socket connections
2) clean up temp files
3) inform its children that it is going away
4) reset its terminal characteristics
and so on and so on and so on.
Generally, send 15, and wait a second or two, and if that doesn't
work, send 2, and if that doesn't work, send 1. If that doesn't,
REMOVE THE BINARY because the program is badly behaved!
Don't use kill -9. Don't bring out the combine harvester just to tidy
up the flower pot.
"""
rappel sur les signaux: http://www.tutorialspoint.com/unix/unix-signals-traps.htm
"""
SIGHUP 1 Hang up detected on controlling terminal or death of controlling process
SIGINT 2 Issued if the user sends an interrupt signal (Ctrl + C).
SIGQUIT 3 Issued if the user sends a quit signal (Ctrl + D).
SIGFPE 8 Issued if an illegal mathematical operation is attempted
SIGKILL 9 If a process gets this signal it must quit immediately and will not perform any clean-up operations
SIGALRM 14 Alarm Clock signal (used for timers)
SIGTERM 15 Software termination signal (sent by kill by default).
"""
c'est ça.
j'aurais rallongé un peu plus la bande rouge, quitte à rogner sur la panique.