Solved

shutdown

Posted on 2000-04-16
4
344 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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