LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-28-2004, 05:14 PM   #1
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Rep: Reputation: 15
Trouble turning off


I don't know how to turn my computer off, do you have to use the command line?
I couldn't find any program that seems like it would turn it off,




thanks for your help
 
Old 12-28-2004, 05:45 PM   #2
squirellplaying
Member
 
Registered: Mar 2004
Posts: 93

Rep: Reputation: 15
From command line type:
Code:
shutdown now
 
Old 12-28-2004, 05:50 PM   #3
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
I already tried these:
shutdown
shut down
turnoff
turn off

and also what that other guy said. none work
 
Old 12-28-2004, 05:54 PM   #4
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
Try halt or init 0
 
Old 12-28-2004, 06:00 PM   #5
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
still no success, maybe I'm missing the program? if there is one? I've tried it in xterm and bash, do I need a different shell?
 
Old 12-28-2004, 06:08 PM   #6
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
Just making sure; you are trying the commands as root, right?
 
Old 12-28-2004, 06:11 PM   #7
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 31
hi,

from the command line, to shutdown your computer type -

Code:
shutdown -h now
what you're doing here is telling your machine to shutdown for system halt (-h) immediately (now)...

alternatively, to reboot type -

Code:
shutdown -r now
where the -r means 'restart'..

have a look at the 'shutdown' manual page (type 'man shutdown' from the command prompt)...

if your computer doesn't actually 'power off' when you go for system halt, that's another issue - have a search on these forums. it's a relatively common problem.

cheers.
 
Old 12-28-2004, 06:11 PM   #8
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
no all I'm trying to do is shut it off i didn't know i'd have to be logged in as root to do that, but halt worked now
 
Old 12-28-2004, 06:39 PM   #9
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
thanks , but is there an easier way to shutdown?
 
Old 12-28-2004, 06:51 PM   #10
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 31
hi,

if you're running without X and using the command line, it;s possible to assign 'aliases' to common commands. for example, you could assign a keyword 'off' to shutdown your computer. i have no experience of this and have never tried it, but you might try a google, or search these forums for 'bash' aliases (i'm assuming you're using bash, which is more than likely).

other than that, well no - unless you're using a graphical environment, you'll have to type something to shut your machine off. don't just use the power button!!

sorry i can't help further - here's hoping somebody with more experience can provide you with a more detailed answer.
 
Old 12-28-2004, 07:08 PM   #11
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
The only easier way to shut down that I've found is configuring sudo (visudo and man vi ) and putting a shortcut in my window manager somewhere that points to "sudo /sbin/halt"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pc turning itself off (fan trouble i think) Letherian Linux - General 2 12-05-2005 12:37 AM
turning off gui ieuuk Linux - Software 3 10-02-2004 04:00 PM
turning off dfownz Slackware 1 01-14-2004 07:53 PM
Turning off the sayings squirreldogger Slackware 2 11-11-2003 12:39 PM
turning on com ports GT I.N.C Linux - Hardware 5 07-09-2002 01:54 AM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration