Results 1 to 5 of 5

Thread: Linux and UNIX shutdown command help

  1. #1
    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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 **

  5. #5
    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,472,523.16905 seconds with 17 queries