Ubuntu9.04 system shutdown methods and Command Parsing

Source: Internet
Author: User
In the operating system, shutdown or restart is one of the most common operations, especially for the desktop operating system, which is always enabled, shut down, or restarted several times a day. Speaking of Linux system shutdown methods, there are graphical interfaces and command line-based, and each shutdown method is very knowledgeable. This article describes how to use GNOME to integrate the desktop environment based on Ubuntu9.04. 1. Integrated desktop environment shutdown secure and convenient both GNOME integrated desktop environment and KDE integrated desktop environment are on the menu or panel

In the operating system, shutdown or restart is one of the most common operations, especially for the desktop operating system, which is always enabled, shut down, or restarted several times a day. Speaking of Linux system shutdown methods, there are graphical interfaces and command line-based, and each shutdown method is very knowledgeable.

This article describes how to use GNOME to integrate the desktop environment based on Ubuntu 9.04.

I. Integrated desktop environment shutdown secure and convenient

Either GNOME integrated desktop environment or KDE integrated desktop environment, shutdown options are provided on the menu or panel.

Take Ubuntu's default GNOME integrated desktop environment as an example. After logging on to the GNOME desktop environment, on the top right of the panel on the desktop, there is a "quick User Switching applet" button (which integrates User Switching and shutdown options). Click this button, the options include "exit", "restart", and "shutdown". Click "shutdown" to bring up the "shutdown" dialog box. After a delay of 60 seconds, the system will shut down normally.

Note that if multiple users log on to the system, the system automatically displays the "authentication" dialog box () when a common user shuts down (), the system prompts you to select a user with administrator privileges. The user can be shut down only after the correct password is entered.

"Authentication" dialog box

2. Knowledge of Terminal Mode shutdown commands

1. "shutdown" for delayed shutdown

The "shutdown" command is the most frequently used command for shutdown or restart in Linux text mode (terminal mode. The format is [sudo] shutdown parameter delay time ".

Common "Parameters" include "-h" and "-r". "-h" corresponds to shutdown operations, and "-r" corresponds to system restart (when the "-r" parameter is used, its function is similar to another command "reboot" in Linux ).

"Delay Time" refers to the delay time from issuing a command to actually executing a shutdown or restarting operation. Because the command execution requires administrator permissions, if the current login user (such as the "root" User) has this permission, you do not need to add "sudo" before the "shutdown" command; otherwise, you need to add it.

After the "shutdown" command is executed, the system of all logged-on users will be notified that the system will be shut down and the login request of new users will be stopped. The user process or daemon receiving the termination signal will also be safely stopped.

Careful readers may find that there is also a "shutdown" command in Windows, which is similar to the "shutdown" command on Linux, however, it must be noted that its parameters are different from those of the "shutdown" command on Linux. In addition, the "shutdown" command in Windows has the function of disabling remote computers, while the "shutdown" command in Linux does not yet have this function. However, we will introduce how to use the "shutdown" command to disable the remote computer function with the help of OpenSSH.

2. "poweroff" and "halt" for fast shutdown

Both the "poweroff" and "halt" commands are used to maintain compatibility with traditional System V. In Linux, if no special parameters are specified, they call the "shutdown" command and append the "-h" parameter to complete the shutdown function. The command must be executed as a system administrator. Enter the "sudo poweroff" or "sudo halt" command in the GNOME terminal window to shut down the instance directly.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.