Ubuntu 12.04无法正常关机
来源:互联网 发布:网络剪刀手中文破解版 编辑:程序博客网 时间:2024/06/10 03:01
Shutdown computer using terminal in Ubuntu
f you want to shutdown your computer what do you do ? Simply go to shutdown button and click shutdown isn’t?
Have you ever wondered how would you shutdown your pc if your gdm (Graphical User Interface) is not working. Or you are only working in command line mood or running a computer user account with ssh(secured shell) ??
Shutdown command
The command used in ubuntu to shutdown is shutdown.
If you want to shutdown your computer right now enter the command below
- $ sudo shutdown -h now
$ sudo shutdown -h now
or
- $ sudo shutdown -h 0
$ sudo shutdown -h 0
Shutdown computer at a scheduled time
if you want to shutdown command at a scheduled time enter the following command
- $ sudo shutdown -h 12:00 "System is shutting down"
$ sudo shutdown -h 12:00 "System is shutting down"
This will shutdown your computer on 12pm with sending this message to all user.
You can also use power off or halt command to do this.
- $sudo halt
$sudo halt
or
- $sudo poweroff
$sudo poweroff
Reboot computer
Use any of this following command
- $ sudo reboot
$ sudo reboot
or
- $ sudo shutdown -r 0
$ sudo shutdown -r 0
from: http://www.dscripts.net/2010/06/27/shutdown-computer-using-terminal-in-ubuntu/
解决 ubuntu 无法关机
1. Type in terminal:
- sudo gedit /etc/default/grub
sudo gedit /etc/default/grub
2. Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
3. Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
4. Save the file and close the file.
5. Finally, in terminal:
- sudo update-grub
sudo update-grub
I found it here: Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04
Entering BIOS usually by pressing Del button when computer starting. Go to Advanced Settings and make sure APM is Enabled.
If you have installed Windows Operating System, and you succeed to shutdown your computer on Windows, it means your APM is Enabled.
If it still don’t fix your problem, try it in terminal,
- $ sudo gedit /etc/init.d/alsa-utils
$ sudo gedit /etc/init.d/alsa-utils
Change gedit with your favorite text editor. This will open alsa-utils or if it doesn’t exist, create new one.
Type,
- ifconfig wlan0 down
- ifconfig eth0 down
- EXITSTATUS=0
ifconfig wlan0 downifconfig eth0 downEXITSTATUS=0
Save file, and try to shutdown Ubuntu.
- Ubuntu 12.04无法正常关机
- Ubuntu无法正常关机的解决
- Ubuntu 8.04无法正常关机问题解决
- UBUNTU 8.10关机时ALSA无法终止,无法正常关机
- ubuntu 正常关机后无法启动的问题
- Ubuntu无法正常关机(以Ubuntu12.04为例)
- K650c + Ubuntu 15.04无法正常关机,重启
- ubuntu 12.04无法关机解决方案
- 关于win10无法正常关机
- Ubuntu无法关机解决办法
- linux非正常关机无法启动
- Linux装机失败无法正常关机解决办法
- Ubuntu非正常关机解决办法一例
- Ubuntu无法关机的解决方案
- ubuntu自动关机命令,ubuntu 无法关机解决方法
- ubuntu 数据库无法正常启动
- Ubuntu无法正常连接无线网络
- epson lq-630k使用后无法正常关机
- Memberwise Initialization和Bitwise copy
- 百度李彦宏:相信技术的力量
- 解读马化腾讲话:不只谈“微信 3 亿用户”
- 推荐10款非常优秀的HTML5开发工具
- 马云:展望网商未来十年
- Ubuntu 12.04无法正常关机
- Java 8的重要新特性以及未来版本的发展规划
- 周鸿祎:未来两年无线互联网格局将定
- extern关键字
- 程序内存分配
- R命令(4)
- 《征服C指针》作者语录
- 黑马程序员——正则表达式
- android中dip、px相互换算