#1 Le 14/01/2012, à 00:48
- antoine2ttt
Redémarre / Éteindre l'ordinateur par un commande ?
Bonsoir,
j'aimerais savoir si on peut Redémarre / Éteindre l'ordinateur par un commande dans le terminal ?
Merci,
Amicalement,
Hors ligne
#2 Le 14/01/2012, à 01:03
- gigiair
Re : Redémarre / Éteindre l'ordinateur par un commande ?
sudo shutdown now
pour un arrêt immédiat
shutdown 30 -h
La même chose dans 30 mn.
Avec l'option -r c'est un redémarrage au lieu d'un arrêt.
shutdown 0:30 -r
La machine va redémarrer à 0h 30mn.
man shutdown
Plein d'autres options
Dernière modification par gigiair (Le 14/01/2012, à 09:21)
--
JJR.
Hors ligne
#3 Le 14/01/2012, à 01:07
- antoine2ttt
Re : Redémarre / Éteindre l'ordinateur par un commande ?
Merci beaucoup
Hors ligne