一.指令

shutdown命令
shutdown -h now //立即关机
shutdown -h 2 //分钟后关机
shutdown -r now //立即重启
shutdown -r 1 //1分钟后重启
sleep 30s //等待30秒来后面也可以运行程序 halt //关机
reboot //重启
sync //把内存的数据同步到磁盘,一般定时关机或者重启都要加这个指令放置信息丢失 init 0 //关机
init 6 //重启

二.定时关机脚本

a.txt
sync
sleep 20s
reboot
授权文件
chmod 777 文件名
运行文件
./文件名` 注意这里`/`与`文件名`之间不要加`空格

最新文章

  1. mongodb 数据库操作--备份 还原 导出 导入
  2. iOS设计模式简介
  3. Spring的DI(Ioc) - 注入集合类型
  4. Excel 代码
  5. [转]C#中的?和??
  6. easy_painting
  7. memcached采用的网络模型
  8. Retrofit,Okhttp对每个Request统一动态添加header和参数(五)
  9. 80后程序员降薪6K,预感中年危机来袭,准备跳槽却碰壁
  10. 从后台拿到echarts的数据值,求出百分比
  11. socket架构
  12. JAVA Number与Math类
  13. HDU 1064(求平均数 **)
  14. git pull/fectch
  15. idea中切换svn地址不起作用
  16. 【基础】iframe之间的切换(四)
  17. Spring容器中获取bean实例的方法
  18. cisco 3850 GBIC报错处理
  19. 001.Chrony时间服务器
  20. printf()详解之终极无惑

热门文章

  1. uva 10566 Crossed Ladders (二分)
  2. Getting started with the basics of programming exercises_5
  3. mongodb Helper
  4. get_magic_quotes_gpc() PHP转义的真正含义
  5. Oracle的dual是什么东西啊
  6. .net Framework 源代码 · ScrollViewer
  7. Appium + python 自动化测试环境配置
  8. Python--day24--复习
  9. JPA 一对多、多对一注解
  10. laravel post提交数据时显示异常