There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers error firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Graceful Linux Shutdown...


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

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

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.


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 help people like you solve 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 -4. The time now is 05:02 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.