Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Linux and UNIX shutdown command help

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-03-2010
Member
 
Join Date: Mar 2010
Posts: 61
Linux and UNIX shutdown command help
  

I am new to this forums and currently i learning Linux operating system, early i was using Windows XP, now i don't know how to shutdown in Linux and at the same time i also don't have any idea what is the command use in Linux and Unix to shutdown the system. Can anyone help me out with it.

Reply With Quote
  #2  
Old 27-03-2010
Member
 
Join Date: Jan 2009
Posts: 91
Linux and UNIX shutdown command help

If you want to shut down your system then you can click on the main menu bar and over there you will find out shut down option or you can also find it out from bar which appear at the bottom and i don't have any idea about command line in that case i think some expert can provide you some more details.
Reply With Quote
  #3  
Old 27-03-2010
Member
 
Join Date: Dec 2008
Posts: 144
Linux and UNIX shutdown command help

To shut down your system in Linux and UNIX you can use

/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]

at the same time you can also use some command where you can shut down the system immediately or after a specified delay. In specific delay all the processes are first notified that the system is going down by the signal SIGTERM. This gives a program to save the file being edited, mail and news processing programs a chance to exit cleanly, etc.
Reply With Quote
  #4  
Old 27-03-2010
Member
 
Join Date: Dec 2008
Posts: 128
Linux and UNIX shutdown command help

Following are the list of commands which are used in LINUX and UNIX:-

Shutdown (halt) system immediately

Code:
# shutdown -h 0
But i would not suggest you to use this command because it's dangerous as it will not allow user to save there files or data. Then that case it's better to give a warning message to user and then shut down the system.

Code:
# shutdown +5 "*** Server is going DOWN for hard disk replacement!!! Please save all your work **
Reply With Quote
  #5  
Old 27-03-2010
Member
 
Join Date: Dec 2008
Posts: 79
Linux and UNIX shutdown command help

Allow with shutdown command you can also use other options which is list below:-
  • -a Use /etc/shutdown.allow.
  • -t sec Tell init to wait sec seconds between sending processes the warning and the kill signal, before changing to another runlevel.
  • -k Don't really shutdown; only send the warning messages to everybody.
  • -r Reboot after shutdown.
  • -h Halt after shutdown.
  • -n Don't call init to do the shutdown but do it ourselves. The use of this option is discouraged, and its results are not always what you'd expect.
  • -f Skip fsck on reboot.
  • -F Force fsck on reboot.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Linux and UNIX shutdown command help"
Thread Thread Starter Forum Replies Last Post
Equivalent UNIX 'cut' command in Windows Powershell Echa Software Development 2 27-02-2012 08:44 PM
Need some basic of linux shutdown command Toraidio Operating Systems 4 06-04-2010 05:21 PM
Deleting line with sed command in unix/linux Fragman Software Development 5 20-03-2010 09:47 PM
To run Linux AIM in Unix ? Ebenezer Operating Systems 3 19-03-2009 02:55 PM
Unix command rm -rf RIMON Software Development 1 18-03-2009 09:46 AM


All times are GMT +5.5. The time now is 11:19 PM.