Find the answer to your Linux question:
Results 1 to 3 of 3
I was using Ubuntu recently and some of the shutdown commands. To say the least, the way computers turn off today is not exactly what I'm looking for. I want ...
  1. #1
    Linux User Agent-X's Avatar
    Join Date
    May 2005
    Location
    Dimension X
    Posts
    261

    Cut the power with terminal or a script?

    I was using Ubuntu recently and some of the shutdown commands. To say the least, the way computers turn off today is not exactly what I'm looking for.

    I want a way of simply turning off the computer. A "hard shutdown," if you will. I want a script that is similar to "pulling the plug."

    I figure I could eventually use xbindkeys to use a key commands, but at the moment, I'd interested in whether or not Linux is capable of turning off the computer without going through a "kill process."

    It is possible?
    How could it be done?

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Check out the 'poweroff' command, particularly the '-f' flag.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Linux User Agent-X's Avatar
    Join Date
    May 2005
    Location
    Dimension X
    Posts
    261
    I tried that, but the system froze when I did that. It froze at the terminal and nothing else happened. All the hardware froze, too.

    Code:
    $ sudo su
    $ poweroff -f
    and then it freezes.

    I'm using Ubuntu Feisty.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...