我們在學習linux系統(tǒng)的時候常常會遇到一些我們不明白的問題linux命令,那么就有網(wǎng)友們提出疑問Linux的待機命令是什么?那么現(xiàn)在就讓愛站小編為大家詳細講解Linux的待機命令吧。
Linux待機命令有
#xset dpms force standby
#xset dpms force off
腳本:
#!/bin/bash
then
echo "Enabling DPMS ..." >>/etc/acpi/actions/stay.txt
/usr/X11R6/bin/xset -display $DISPLAY +dpms
fi
# find out if the monitor is on
/usr/local/sbin/usr/local/bin/usr/sbin/usr/bin/sbin/bin/usr/bin/x11/usr/games/usr/x11r6/bin。/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin。 path="/usr/lib/jvm/jdk8/bin:/usr/local/sbin:/usr/local/bin: /usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"。
if [ "$STATUS" == " Monitor is On" ]
then
echo "[`date`] Turning display OFF" >>/etc/acpi/actions/stay.txt
/usr/X11R6/bin/xset -display $DISPLAY dpms force off
else
echo "[`date`] Turning display ON" >>/etc/acpi/actions/stay.txt
path is set to /home/solarwinds/dpa_10_0_352/iwc/jre_linux/bin:/usr/java/jdk1.7.0_25/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin。plug it into car cigarette light, it will display the car voltage when turn on the car, and monitor the car battery in any time.。path=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/mysql/bin:/root/bin。
/usr/X11R6/bin/xset -display $DISPLAY s activate # un-blank monitor
fi
exit 0
每次運行把記錄寫進/etc/acpi/actions/stay.txt 文件里.
本文主要介紹的就是Linux的待機命令linux命令,希望本文可以為大家的工作或者學習帶來一定的幫助。
標簽:Linux待機命令