Linux 关机 休眠, 关闭移动设备自动挂载 命令

"+++++++++++++++++++++++++ Linux 关机、休眠命令 +++++++++++++++++++++++++++++++++++++++"
indows7关机、重启、待机、休眠命令

Windows7下一些关机、重启、待机、休眠命令,通过Autohotkey可实现快速关机等操作。

;立即关机,无提示、延时。
shutdown -p
;立即重启
shutdown -r -t 00
;进入休眠状态,如有关闭休眠则进入待机状态
rundll32.exe powrProf.dll,SetSuspendState
Linux系统关机、重启、待机、休眠
立刻关机:
sudo halt
sudo init 0
sudo shutdown -h now
sudo shutdown -h 0
定时/延时关机:
sudo shutdown -h 19:30
sudo shutdown -h +30 ##单位为分钟
重启:
sudo reboot
sudo init 6
sudo shutdown -r now
休眠:
sudo pm-hibernate
echo “disk” > /sys/power/state
sudo hibernate-disk
待机(挂起):
sudo pm-suspend
sudo pm-suspend-hybrid
echo “mem” > /sys/power/state
sudo hibernate-ram

ubuntu 12.04 关闭移动设备自动挂载
gsettings set org.gnome.desktop.media-handling automount false

"+++++++++++++++++++++++++ Linux 关机、休眠命令 +++++++++++++++++++++++++++++++++++++++"

posted on 2017-03-10 16:21  路之遥_其漫漫  阅读(482)  评论(0编辑  收藏  举报

导航