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 10:21] – [brightness / xrandr] cyrille | php-bash:aide-memoire [2025/09/12 18:18] (Version actuelle) – [Changer Date fichier(s)] 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 | ||
| + | </ | ||
| + | |||
| + | =====Rebooter sous le BIOS ===== | ||
| + | |||
| + | Un moyen très simple d' | ||
| + | |||
| + | <code | download> | ||
| + | sudo systemctl reboot --firmware-setup | ||
| + | </ | ||
| + | |||
| + | L' | ||
| + | |||
| + | |||
| + | =====Changer Date fichier(s)===== | ||
| + | Modifier simultanément les horodatages atime et mtime | ||
| + | <code | download> | ||
| + | touch -d " | ||
| + | </ | ||
| + | |||
| + | |||