Linked Questions

16 votes
3 answers
53k views

what is the right way to shutdown ubuntu using the command line? [duplicate]

I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various ...
muyiscoi's user avatar
  • 692
0 votes
1 answer
13k views

how to shutdown my ubuntu-server 16.04.2 [duplicate]

When I use sudo init 0 to shutdown the system ,it always staying at [ok] Stopped LVM2 metadata daemon What can I do?
AhianZhang's user avatar
0 votes
2 answers
3k views

how can I shutdown from the command line using lightdm? [duplicate]

Possible Duplicate: How do I restart /shutdown from a terminal? In gdm I could use os.system("gdm-control --reboot && openbox --exit") In a Python script. What would the command be ...
Super Nathan's user avatar
103 votes
5 answers
341k views

Why doesn't running "sudo shutdown now" shut down?

When I issue the following: sudo shutdown now ..my newly commissioned Ubuntu 14.04 server doesn't shut down. It stops with the following message: * Stopping System V runlevel compatibility Give ...
Jon Cage's user avatar
  • 1,133
32 votes
3 answers
136k views

Automatic shutdown at specified times?

I'm aware I can use (sudo?) shutdown -h hh:mm in a terminal window to shut down a system, however the user that is logged in is a kiosk user, which is locked down in such a way that terminal (or any ...
MrAxlee's user avatar
  • 507
25 votes
2 answers
27k views

How to enable hibernation in 15.04?

I did a clean install of 15.04, tried to enable hibernation per instruction from http://ubuntuhandbook.org/index.php/2014/10/enable-hibernate-option-in-ubuntu-14-10-unity/ but it works only if I boot ...
user310773's user avatar
12 votes
2 answers
18k views

Terminal commands to hard shutdown and hard restart

I want to do hard restart and hard shutdown(immediate shutdown and restart) through terminal. Is this possible through terminal commands? And note that no answers in this How do I shut down or ...
Avinash Raj's user avatar
  • 78.5k
7 votes
4 answers
3k views

How can I create an infinite login loop for a specific user?

Well I know the question is weird, but i have a user "Bob" and I want only bob's account to be stuck in infinite login loop. Please note I don't want to get out of a login loop..I want this particular ...
user avatar
10 votes
3 answers
3k views

Shutting down the system using a virtual console

My computer is freezing from time to time. It's because I make few mistakes and I ruined my system. I don't have any time to reinstall the system now. While my PC is frozen, it still works when I ...
KonradDos's user avatar
  • 2,951
1 vote
4 answers
4k views

Shutdown ubuntu server when idle

I have Ubuntu server 20.04LTS running on an old optiplex. I'm trying to figure out how to shut down my server automatically after a certain idle period. What's the best way to go about this ? [The ...
Kumudu's user avatar
  • 91
6 votes
3 answers
3k views

How to make Ubuntu shutdown when power lost? [duplicate]

My project requires that the power source for the laptop be switched on and off. Is there a way to make Ubuntu shutdown properly when the external power is lost? It will run the shutdown on its ...
BDMan32's user avatar
  • 71
3 votes
1 answer
3k views

Shutdown command does nothing

I can't shutdown my ubuntu 14.04 anymore. # shutdown -h now Nothing happens at all # halt -h # halt:Unable to execute shutdown: exec format error Shutting down from gui just messes up the lightdm. ...
prumand's user avatar
  • 61
3 votes
1 answer
2k views

Screen stuck on Night Light Mode

The screen is perpetually pink, and it won't turn off. When I turn on night light, the color stays the same. I tried using redshift, and it doesn't work. Here's what I get when I type the command "...
GraysunLight's user avatar
1 vote
2 answers
2k views

Why doesn't 'systemctl reboot' work?

Why dont these commands work in Kubuntu 20.04? Applications shut down and the screen goes black, but it never finishes poweroff. Any ideas? systemctl poweroff systemctl reboot https://askubuntu.com/a/...
alchemy's user avatar
  • 762
1 vote
2 answers
748 views

Random Freezing with ubuntu 14.04

Installed ubuntu 14.04 and the system freezes at least once a day at what seems to be random times. By Freezing I mean the mouse keyboard and screen won't react at all. This will happen no matter if ...
user695695's user avatar

15 30 50 per page