Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
php-bash:aide-memoire [2024/09/25 12:21] – [brightness / xrandr] cyrille | php-bash:aide-memoire [2025/03/15 18:21] (Version actuelle) – [Disque SSD ou HDD ?] cyrille | ||
---|---|---|---|
Ligne 1031: | Ligne 1031: | ||
rename s/$/.jpg/ * | rename s/$/.jpg/ * | ||
</ | </ | ||
+ | |||
+ | ===== Test si programme / service tourne... ===== | ||
+ | <code | download> | ||
+ | ################### | ||
+ | ## pgrep example ## | ||
+ | ################### | ||
+ | pgrep -x mysqld >/ | ||
+ | pgrep -x httpd >/ | ||
+ | |||
+ | ################### | ||
+ | ## pidof example ## | ||
+ | ################### | ||
+ | pidof httpd >/ | ||
+ | pidof nginx >/ | ||
+ | |||
+ | ################ | ||
+ | ## ps example ## | ||
+ | ################ | ||
+ | ps -C httpd >/ | ||
+ | ps -C nginx >/ | ||
+ | </ | ||
+ | |||
+ | Avec systemd | ||
+ | <code | download> | ||
+ | systemctl is-active --quiet <service name> || systemctl restart <service name> & | ||
+ | </ | ||
+ | |||
+ | ===== Lancer serveur php sans conf particulière ===== | ||
+ | |||
+ | <code | download> | ||
+ | php -S localhost: | ||
+ | </ | ||
+ | |||
+ | |||
+ | Y accéder | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== Disque SSD ou HDD ? ===== | ||
+ | |||
+ | <code | download> | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | Si retourne 0 alors SSD, si 1 alors HDD | ||
+ | |||
+ | ===== Lister les entrées du grub ===== | ||
+ | <code | download> | ||
+ | # awk -F\' '/ | ||
+ | Debian GNU/Linux GNU/Linux | ||
+ | Debian GNU/Linux GNU/Linux, with Linux 6.8.12-amd64 | ||
+ | Debian GNU/Linux GNU/Linux, with Linux 6.8.12-amd64 (recovery mode) | ||
+ | Debian GNU/Linux GNU/Linux, with Linux 6.6.9-amd64 | ||
+ | Debian GNU/Linux GNU/Linux, with Linux 6.6.9-amd64 (recovery mode) | ||
+ | UEFI Firmware Settings | ||
+ | </ | ||
+ |