Sunday, November 22, 2015

Shutdown computers running Linux using Terminal




Some times you might want to shutdown your computer which runs linux using terminal because of several reasons. GUI of your operating system might not work or you just want to be a smart user of linux. what ever it is, lets see how we can shutdown our computer using linux command line.

It is easy,

  1.    Press Ctrl+Alt+T for get in to the terminal.
  2.    Enter the code sudo shutdown -h now and press Enter.
  3.   Type in your password (if prompted) press Enter again.
There are some other methods to do the same task and mainly two commands.
  1. Shutdown command
    • this command will bring the system down with a warning message
  2. Poweroff command
    • this command will stop the system
So you can use these two commands as well,

  • poweroff
  • shutdown -h +0


No comments:

Post a Comment

Optimize you working enviorenment : Single command to create & move to a directory in linux (C Shell, Bash)

Usually move to a directory just after creating is bit of a anxious task specially if the directory name is too long. mkdir long-name-of...