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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-28-2004, 05:14 PM
|
#1
|
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Rep:
|
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
|
|
|
|
12-28-2004, 05:45 PM
|
#2
|
|
Member
Registered: Mar 2004
Posts: 93
Rep:
|
|
|
|
|
12-28-2004, 05:50 PM
|
#3
|
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Original Poster
Rep:
|
I already tried these:
shutdown
shut down
turnoff
turn off
and also what that other guy said. none work
|
|
|
|
12-28-2004, 05:54 PM
|
#4
|
|
Member
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232
Rep:
|
Try halt or init 0
|
|
|
|
12-28-2004, 06:00 PM
|
#5
|
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Original Poster
Rep:
|
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?
|
|
|
|
12-28-2004, 06:08 PM
|
#6
|
|
Member
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232
Rep:
|
Just making sure; you are trying the commands as root, right?
|
|
|
|
12-28-2004, 06:11 PM
|
#7
|
|
Member
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605
Rep:
|
hi,
from the command line, to shutdown your computer type -
what you're doing here is telling your machine to shutdown for system halt (-h) immediately (now)...
alternatively, to reboot type -
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.
|
|
|
|
12-28-2004, 06:11 PM
|
#8
|
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Original Poster
Rep:
|
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
|
|
|
|
12-28-2004, 06:39 PM
|
#9
|
|
Member
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80
Original Poster
Rep:
|
thanks  , but is there an easier way to shutdown?
|
|
|
|
12-28-2004, 06:51 PM
|
#10
|
|
Member
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605
Rep:
|
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.
|
|
|
|
12-28-2004, 07:08 PM
|
#11
|
|
Member
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232
Rep:
|
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"
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:49 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|