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
or
$ 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"
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
or
$sudo poweroff
Reboot computer
Use any of this following command
$ sudo reboot
or
$ 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
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
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
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
Save file, and try to shutdown Ubuntu.
分享到:
相关推荐
ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-...
解决方法: 进入dos: 以DBA用户登录,具体命令是 sqlplus /NOLOG SQL>connect sys/change_on_install as sysdba 提示:已成功 SQL>shutdown normal 提示:数据库已经关闭 已经卸载数据库 ORACLE 例程已经关闭 ...
Oracle initialization or shutdown in progress 是oracle误删除文件所造成的sqlplus不能登陆的问题 正确,经验。
数据库导致连接出现异常的解决办法整理,这是 oracle连接问题的具体解决方案
SHUTDOWN-定时开机关机 SHUTDOWN-定时开机关机 SHUTDOWN-定时开机关机 SHUTDOWN-定时开机关机 SHUTDOWN-定时开机关机
vista 关机命令 shutdownvista 关机命令 shutdownvista 关机命令 shutdownvista 关机命令 shutdownvista 关机命令 shutdown
电脑设置定时关机,shutdown命令详解
Linux系统关机命令shutdown introduction
定时关机软件,可设置自动关机,简单易用,无多余文件和功能,一个文件搞定。
智能自动关机(Wise Auto Shutdown)是一个用户友好的应用程序,允许用户安排自己的计算机自动重新启动,注销或关闭。这样,一个不再需要一个漫长的下载等待完成能够关闭电脑的电源,他们可以简单地用智能自动关机。 ...
不使用shutdown情况下系统关机 英文版系统下也可以用适合XPE系统
C#关机源代码C#关机源代码Shutdown
远程关机(shutdown) 远程操控自动关机 远程关机(shutdown) 远程操控自动关机
Wise Auto Shutdown 是由 Wise 公司开发的一款 Windows 计算机自动关机工具,可以在指定的时间执行电脑关机、重启、注销、休眠和关闭电源操作。Wise Auto Shutdown 完全支持 Windows XP、Win7、8、10 等主流 Windows...
快速关机小工具(Fast Shutdown)是快速关闭Windows的一个小工具。也可以用来当做Windows 8(7 / XP)的关机按钮。 这是非常有用的,因为Windows8没有关机按钮,只需点击一下,你将能够关闭Windows! 默认情况下,快速...
shutdown 命令 设置 自动 关机
ShutDown.rar 多条件设置定时关机,可设置cpu 使用情况定时关机 挂机者必备工具
Android 关机和重启(reboot and shutdown)源码.rar
vb写的,调用shutdown函数关机,不用修改进程,简单,好用,适合初学者,容易上手
c#使用shutdown关机命令让xp和vista关机