Solved

shutdown

Posted on 2000-04-16
4
339 Views
Last Modified: 2010-04-20
Hello, Im a new Linux user and i was wondering what is the correct way to shutdown from the command line prompt.  Ive tried exit but it would just take me back to the login screen.  Do i just turn off my computer at this stage?  Thanks in advance
0
Comment
Question by:rlivings
4 Comments
 

Accepted Solution

by:
babar_ahsan earned 50 total points
ID: 2721744
if u want to shutdown immediatly and reboot again use: "shutdown -r now"

if u want to shutdown immediatly and and dont want to reboot again but halt the system use: "shutdown -h now"

if u want to reboot use(it behaves same as first option): "reboot"
0
 

Expert Comment

by:hv
ID: 2721757
You should not just take of the power,
that may harm your linuxsystem, and makes the next boot slower even if no harm was done.

From linux you can use the command "halt" if you want to stop using the pc, or the command "reboot" if you want to reboot rather than stop.  If you do a
"man shutdown" you can learn about
more optoins.

Running any of those commands you either
need to be logged on as root, or have permissions set which allow your userid
to run them.

Finally, if time is short you have the
keyboard reboot command:
left_ctrl + left_alt + del

If you use an x-windows manager, like
kde, gnome, or whatever, it is always
wise to logout from that separately,
before taking down linux.
0
 
LVL 1

Expert Comment

by:andrewljohn70
ID: 2722777
hi rlivings,
Also try to use the following:

1. To shutdown your computer
    init 0

2. To reboot your computer
    init 6

These generally are not used - but I though to just adding this bit.
The shutdown command is used but by using these u type in less and hence quicker with lesser parameters and also easier to remember.
Cheers  :)
0
 

Author Comment

by:rlivings
ID: 2723852
Thank you
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now