Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

  1. Note: we recently updated out site software, please report any unseen issues - we do this often to insure your information is secure.
    Dismiss Notice

Day to Day with Linux

Discussion in 'Linux Beginner Tutorials' started by Rob, Jul 9, 2013.

  1. Rob

    Rob Administrator
    Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    221
    Likes Received:
    639
    Shutting down Linux

    At this point you should have installed Linux, and you've looked around at what you have. And then when you're finished you'll have to shut off your computer. Actually, there are computers that are never shut off. Imagine if your ISP shut off the computer every night! The Internet is a 24/7 business so that wouldn't be practical. There are also people who probably just shut off their monitor. As you probably get some sleep occasionally, so we should maybe let our machine have a rest too once and a while. For this, we'll use the shutdown command

    As anyone who's used a computer knows, if you shut off you're computer before you've finished saving work, or if there's a power outage that shuts it off for you, data will be lost. At first, if you shut off Linux incorrectly or there was an inopportune thunder storm and you lost electrical power, you could do severe damage to your Linux file system. That will very rarely happen these days, but you should always use the shutdown command when you want to shut off your computer. Linux will tell you about it if you don't - it will run a check on your hard disk automatically when you use it again. If you have a big hard disk, you might as well go and make yourself a sandwich because it's going to take a while. Linux will also run a routine check every once and a while automatically. You also have our permission to fix yourself a sandwich in these cases too.

    Shutdown a single computer

    The most common way of shutting down a single user Linux system is for you as root to issue the command:

    Code:
    shutdown -h now
    You use this when you plan on shutting your computer off at that moment, as opposed to some later time.

    Linux is going for system halt NOW

    It will start to shut off programs that you're computer is using and you'll see it all happening. That's because Linux is a transparent system. It lets you see everything it's doing. It won't give you a simple message telling you to wait and then another one telling you you can shut it off now. If something is causing a problem, it will tell you about it when it starts up and when it shuts down. That way, if you are having a problem, you may be able to track it down. If you don't know how to solve it, you can tell another person what you saw and he or she may be able to help you.

    With the shutdown command, you must wait until you see the message:

    System halted
    Power down before you shut off the computer.
    Re-booting the computer

    Rebooting Your Computer

    Code:
    shutdown -r now
    If you have installed a dual-boot system and you want to use the other operating system, (why would you want to do that?) you would use this command. You will get a similar message as with the -h (halt) option that will say something like:

    System going for reboot NOW

    The basic reason behind all of these messages is that Linux was conceived to be a networked operating system. You have people at workstations on the network busily doing their work. The last part of the shutdown commandnow is fine for a single-user home PC, but on a network system this would be changed to indicate a time. That way people would have a chance to finish what they were doing before the system went down for maintenence. Using 'now', in a network, would probably be hazardous to the health of the person who sent that command.

    The next time you shutdown your system, you may want to try using some time options instead of just now. For example, you may want to try shutting down the computer at a given time.

    Code:
    shutdown -h 20:01
    Which will shutdown the computer at 8:01 PM. You could also try:

    Code:
    shutdown -h +5
    That shuts down the computer in 5 minutes time.

    Now you know the correct way to shutdown your Linux system.


     
    Ashish Naik, MarbzaP, ROY and 16 others like this.
  2. AlienGod

    AlienGod New Member

    Joined:
    Sep 13, 2017
    Messages:
    11
    Likes Received:
    11
    Gratitude
     
  3. Pratham

    Pratham New Member

    Joined:
    Oct 25, 2017
    Messages:
    16
    Likes Received:
    1
    Thanks
     
  4. @6un6

    @6un6 New Member

    Joined:
    Nov 16, 2017
    Messages:
    2
    Likes Received:
    0
    its amazing
     
  5. NightsLast

    NightsLast New Member

    Joined:
    Nov 14, 2017
    Messages:
    22
    Likes Received:
    19
    other than an advertisement.... what is it and what distro of Linux does it run?
    Edited part....
    ARM mbed OS is a platform operating system designed for the internet of things...
    so basically its a phone charging 2 way radio that doesn't give you service in areas you bought it for unless someone else that has cell service and one of those devices and is within 10 miles of you..
    so the next 2 questions are.... 1) what does it have to do with day to day Linux use? 2) what is so amazing about it?
     
    #5 NightsLast, Nov 17, 2017
    Last edited: Nov 17, 2017
  6. @6un6

    @6un6 New Member

    Joined:
    Nov 16, 2017
    Messages:
    2
    Likes Received:
    0
    i am sory man
    i am newbe for the use linux
    I just appreciate
     
  7. Viraj kavindu

    Viraj kavindu New Member

    Joined:
    Dec 5, 2017
    Messages:
    1
    Likes Received:
    0
    helpful post ! :):):):)
     
  8. muhammad ishaq

    muhammad ishaq New Member

    Joined:
    Dec 14, 2017
    Messages:
    1
    Likes Received:
    0
    i want to delet windows and want to install linux
     
  9. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,163
    Likes Received:
    1,153
    Hi Muhammad, and welcome to the site. Instead of posting a new question on someone else's thread, please open a new thread of your own and post your question there. The Getting Started forum would be a good place. There are a number of folks who will be glad to help you. Thanks!
     
  10. mrcrossroads

    mrcrossroads Member

    Joined:
    Nov 23, 2017
    Messages:
    36
    Likes Received:
    36
    Looks like we're getting spammed.
     
  11. Kevin Jacob

    Kevin Jacob New Member

    Joined:
    Dec 12, 2017
    Messages:
    3
    Likes Received:
    3
    I tried doing "shutdown h- now" command but it shows that
    "Failed to parse -h"
     
  12. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,163
    Likes Received:
    1,153
    Hi Kevin, and welcome! You need to enter shutdown -h now (not shutdown h- now). It makes a difference. :D

    Cheers
     
  13. Kevin Jacob

    Kevin Jacob New Member

    Joined:
    Dec 12, 2017
    Messages:
    3
    Likes Received:
    3
    thanks :)
    that was a typo in the query.
    I typed it correct but I already had a timed shutdown command running which was why the shutdown command didn't work. Figured it out :D
    Just getting to start with linux and Its fun :)
     
    CptCharis, wizardfromoz and atanere like this.
  14. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,163
    Likes Received:
    1,153
    Great! We all think it's a lot of fun too. Glad to have you aboard, and feel free to open up a new thread if you have any questions to ask.

    Cheers
     
    wizardfromoz likes this.
  15. Gokul

    Gokul New Member

    Joined:
    Jan 5, 2018
    Messages:
    16
    Likes Received:
    8
    It was nice .Thanks for updating :)
     
    Rob likes this.
  16. DanB

    DanB New Member

    Joined:
    Mar 14, 2018
    Messages:
    1
    Likes Received:
    3
    Great information! I just finished first level red hat linux, getting ready to start second level in a few days. These tutorials put a lot of things I was confused about into perspective. Much appreciated!
     
    Rob, wizardfromoz and atanere like this.
  17. wizardfromoz

    wizardfromoz Well-Known Member

    Joined:
    Apr 30, 2017
    Messages:
    871
    Likes Received:
    972
    If I am in Terminal, and wish to exit/reboot, I often use

    Code:
    init 6
    or preface that with "sudo" for Ubuntu.

    Comments welcome, and

    Avagudweegend

    Chris Turner
    wizardfromoz
     
    Rob, CptCharis and atanere like this.
  18. uP_Ncomin

    uP_Ncomin New Member

    Joined:
    Jun 11, 2018
    Messages:
    2
    Likes Received:
    2
    Great tutorials...easy to follow
     
    Rob and wizardfromoz like this.

Share This Page