?
Solved

shutdown

Posted on 2000-04-16
4
Medium Priority
?
346 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
babar_ahsan earned 200 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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month7 days, 22 hours left to enroll

765 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