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/08/22 18:07] – [Changer la couleur de fond du terminal] cyrille | php-bash:aide-memoire [2025/09/12 18:18] (Version actuelle) – [Changer Date fichier(s)] cyrille | ||
|---|---|---|---|
| Ligne 1010: | Ligne 1010: | ||
| aptitude purge ~i~ri386 | aptitude purge ~i~ri386 | ||
| dpkg --remove-architecture i386 | dpkg --remove-architecture i386 | ||
| + | apt update | ||
| </ | </ | ||
| - | Lister les architectures | + | Lister les paquets installés, ici architecture |
| <code | download> | <code | download> | ||
| aptitude search ~i~ri386 | aptitude search ~i~ri386 | ||
| Ligne 1018: | Ligne 1019: | ||
| aptitude search '? | aptitude search '? | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== brightness / xrandr ===== | ||
| + | <code | download> | ||
| + | xrandr --output $(xrandr | grep -w connected | cut -f ' | ||
| + | |||
| + | |||
| + | ===== Ajout d' | ||
| + | <code | download> | ||
| + | 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 " | ||
| + | </ | ||
| + | |||