LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-03-2002, 11:45 PM   #1
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Rep: Reputation: 15
Cool Shut it down


ok so I am just interested in different ways to shut a linux system down......atleast 3 of them are:

shutdown -h now
telinit 0
halt

anyother cool methods......just curious......i m sure there must be more , ofcourse that's why I am
"A-dummy" ......ok let's increase the options to include even rebooting commands too.....
 
Old 08-04-2002, 12:24 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
poweroff
 
Old 08-04-2002, 01:13 AM   #3
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Original Poster
Rep: Reputation: 15
ok so poweroff is also a method (i didn't knew).....i tried kill -9 1 but init seems to respawn itself.....however
if i send

kill -2 1

to init ,the system is rebooted!! .....exclaimation marks are for likes of me who didn't knew this option ,if u
knew this one already dont feel offended .....i also tried to increase number of processes by executing
a script which execute itself.....but that didn't worked & shell was exited.....& btw
init 0
also halts it down.....
 
Old 08-04-2002, 02:22 AM   #4
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Original Poster
Rep: Reputation: 15
ok here is another one
killall5

it sends kill signal to all processes except the one in which it is....so the system freezes....but it has not
yet been halted/rebooted??.....but what else r u going to do with it now
 
Old 08-04-2002, 03:08 AM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Hit the reset button - quick and dirty tip
 
Old 08-04-2002, 03:28 AM   #6
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
heheh. Well, if I recall correctly, I believe you can code a script and just make about anything you want shutdown your computer.
i.e. gotohell, sleeptight, etc...I'm sure you can be very creative with this. Then you can impress your friends with it,
 
Old 08-04-2002, 05:57 AM   #7
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Original Poster
Rep: Reputation: 15
right now i m impressed with myself .....while playing with it,
i made certain changes (or whatever it was) & now i cant
start my X server....right now i m in windows (forgive me God)
doing search on google.....just one thing is coming to mind:
if things can go wrong ,then they will.....
 
Old 08-04-2002, 06:40 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Forgive me God, bha ha ha ha ha

Good one

I feel dirty every morning when I go home, I have to take a shower because all night I have been using Winbloze at work.

Then I sit there and cry, like that scene from the Crying Game.

ha ha ha ha, poor us who are plagued at work with the M$ Demon! No that's not a mispelling of daemon...

 
Old 08-05-2002, 01:49 AM   #9
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
hehhe, dude make a partition without anyone noticing, boot it with a disk every time so no one even knows you got linux in there, and just work on that, hehehheh
 
Old 08-05-2002, 02:03 AM   #10
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Rep: Reputation: 30
when i do a shutdown -h now, all processes are killed but the screen displays a power down message. how can i get the machine to automatically shut completely off, as in green light goes off.

and to shut off i just hit ctrl+alt+del, then hit the off button when it's rebooted.
 
Old 08-05-2002, 02:48 AM   #11
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by zLinuxz
no one even knows you got linux in there, and just work on that, hehehheh
Atleast windows users can never notice it,that will be demanding
too much from them...or may be u can change all the appearance
of that linux completely to look like XP (in linux u can do it).....to
give it more realistic appearance ,write a script which brings ur
comp to halt every 5-15 mins with a blue screen .....perfect
windows....
 
Old 08-05-2002, 09:53 AM   #12
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
haha, nice one A-dummy. Then the windows guy is like....hmm I wonder if this is a new feature in Win2k, lol

Goatdeamon, I think you need to find out if your computer is first capable of doing that, check in your bios. also...if you have windows you can check it that way, if it automatically complete shutsdown.
 
Old 08-05-2002, 10:27 AM   #13
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
and to add to zLinuxz's reply use poweroff command
 
Old 08-05-2002, 03:35 PM   #14
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Rep: Reputation: 30
Quote:
[i]Goatdeamon, I think you need to find out if your computer is first capable of doing that, check in your bios. also...if you have windows you can check it that way, if it automatically complete shutsdown. [/B]
wup i have a dual boot and windows does auto shut off the computer.
 
Old 08-05-2002, 09:03 PM   #15
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
well, then like neo77777 added to my repply, use the poweroff command, hehe,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot shut down greenlinux Mandriva 6 06-17-2004 04:30 PM
shut down scialom Linux - Hardware 2 03-18-2004 08:14 AM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM
Can't shut down!! karleong Linux - Newbie 2 09-09-2003 07:51 PM
X won't shut down palooga Linux - Newbie 2 09-21-2002 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration