zoukankan      html  css  js  c++  java
  • linux -- Ubuntu图形界面终端实现注销、关机、重启

    linux命令行下的开关机分别为:

    注销:logout

    关机:shutdown -h now (参数不同,会有不同的关机模式)

    重启:shutdown -r now 或 reboot

    这些命令都是在linux命令行中可以实现的,对于带有图形界面的终端,logout并不能注销成功,会报错:

    “bash:logout:not login shell: use 'exit'; ” not login shell!!!!!

    shell:狭义就是命令行,但不是图形界面的终端

    解决的办法:

    注销:/usr/bin/gnome-session-quit (该文件是Ubuntu调用注销的文件,当前版本Ubuntu14.10)

    关机:shutdown -h now (参数不同,会有不同的关机模式)

    重启:shutdown -r now 或 reboot

  • 相关阅读:
    set用法
    01分数规划
    unique && stl的全排列
    lower_bound() && upper_bound()
    spfa判负环
    倍增求LCA
    数据生成c++程序模板
    samba
    vsftp快速配置
    grub丢失的修复
  • 原文地址:https://www.cnblogs.com/hf8051/p/4487782.html
Copyright © 2011-2022 走看看