Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery router screen slow sound spyware tdlwsp.dll trojan upgrade video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Graceful Linux Shutdown...

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
Monstrous Mi's Avatar
Senior Member with 642 posts.
 
Join Date: Jul 2002
Location: Ottawa, Canada
04-Oct-2002, 12:36 AM #1
Graceful Linux Shutdown...
I am running Linux Debian for a firewall.

What is a good command for shutdown (and shutdown with reboot as well)? I use the three finger salute now and I presume that is not the best way.
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
04-Oct-2002, 03:06 PM #2
Never used that distro but I guess the halt and the reboot commands must work! Did you try those 2 commands?
Monstrous Mi's Avatar
Senior Member with 642 posts.
 
Join Date: Jul 2002
Location: Ottawa, Canada
04-Oct-2002, 04:52 PM #3
Yes, they do but I am really looking for the arguements that are associated with the shutdown command.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
04-Oct-2002, 05:07 PM #4
To halt:
su to root and type:
shutdown -h now
to reboot:
shutdown -r now
When you turn it back on after doing ctrl-alt-del,did it run fsck?
To force Linux to do a filesystem check (fsck) type:
shutdown -rF now
If you want to shutdown in,say,10 minutes:
shutdown -h +10
pvc9's reply is correct; in most cases :
halt=shutdown -h now
powerdown=shutdown -h now
reboot=shutdown -r now
HTH
lynch
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands

Last edited by lynch : 04-Oct-2002 05:14 PM.
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
05-Oct-2002, 03:35 AM #5
Very useful commands lynch.
Thx
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
05-Oct-2002, 04:10 AM #6
Hey,havent seen you in the UNIX/Linux forum lately
lynch
Monstrous Mi's Avatar
Senior Member with 642 posts.
 
Join Date: Jul 2002
Location: Ottawa, Canada
05-Oct-2002, 11:54 AM #7
Thanks guys.

Would UNIX extensions for <shutdown> work in LINUX?
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
05-Oct-2002, 12:37 PM #8
Sorry but I dont understand the extensions exactly...

Do you mean the file extensions??? Or is it the commands?

As Linux is derived from Unix and is its GUI version I'd expect it to behave the same as Unix!

Lets wait for lynch's suggestion too

lynch,
Oh, well, am busy at other forums... lol Just kidding! Will do my best here too, in the times ahead. Thx for asking
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
05-Oct-2002, 01:26 PM #9
Some remain alike,eg. the .tar and .tgz extensions.From what little I know of pure UNIX the extensions for a lot of things are the same.But there are quite a few proprietary versions of UNIX out there and with the exception of the open source BSDs(Open,Free and Net),which are very much like linux the extensions can be very different.
lynch
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands
Monstrous Mi's Avatar
Senior Member with 642 posts.
 
Join Date: Jul 2002
Location: Ottawa, Canada
05-Oct-2002, 03:13 PM #10
Sorry, I meant command line options.

For example: >shutdown i6

I believe i6 brings it back up to a certain state. I use this on Unix boxes at work.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
05-Oct-2002, 04:19 PM #11
Oh,okay.LOL.sorry for misunderstanding
Well again,that depends on what flavor of UNIX your using and the shell.Linux and the BSDs have pretty much the same commands and options ,but it depends more on what shell you work with.
Bash is the default shell for almost every Linux flavor I've had a look at.
The i6 thing looks somthing like init6 which is yet another way to reboot.
When you start using the commercial UNIX versions I think things like that really start to differ.
lynch
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands

Last edited by lynch : 05-Oct-2002 09:43 PM.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 11:56 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.