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 20:07] – [Changer la couleur de fond du terminal] cyrille | php-bash:aide-memoire [2024/12/11 17:43] (Version actuelle) – [Lancer serveur php sans conf particulière] 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 1019: | Ligne 1020: | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== 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 |