LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux problem (https://www.linuxquestions.org/questions/linux-newbie-8/linux-problem-4175440972/)

Malem 12-11-2012 08:52 AM

linux problem
 
how to shut down linux using comand

tronayne 12-11-2012 09:01 AM

One is
Code:

su -    (or sudo)
shutdown -h

That will shut down the system and turn off the power.

Another is invoking init directly:
Code:

su -    (or sudo)
init 0

(that's a zero) which will shut the system down and turn off the power.

See the manual pages for both shutdown and init:
Code:

man shutdown
man init

Hope this helps some.

TobiSGD 12-11-2012 01:46 PM

Moved: This thread is more suitable in <Linux - Newbie> and has been moved accordingly to help your thread/question get the exposure it deserves.

luchosrock 12-11-2012 03:17 PM

Code:

$su
#halt


Malem 12-11-2012 08:16 PM

Quote:

Originally Posted by luchosrock (Post 4847243)
Code:

$su
#halt


Says system halting and then Halted but power is not shut down,, I tried #poweroff and works. tnks for all your support

bala.linuxtech 12-12-2012 04:21 AM

Quote:

Originally Posted by Malem (Post 4847018)
how to shut down linux using comand

Hi

We can shutdown linux with the following commands

#halt

#shutdown -h now

# init 0

For restart

#init 6

# reboot -f


Regards
Bala.Linuxtech

Nbiser 12-12-2012 04:07 PM

One last quicky way to shut down linux is to simply press the power button.

GlennsPref 12-12-2012 04:20 PM

Hi, try,
Code:

shutdown -h now
-h = halt
-r = reboot

now = right now! may be a period of time in seconds.

some others,
ctrl alt del = reboot
ctrl alt <-(backspace) = logout


All times are GMT -5. The time now is 04:33 PM.