Linux common commands (iv)

Source: Internet
Author: User
Tags time and date

Commands for shutting down and viewing system information

1.shutdown: Normal shutdown

(Note: You must be a root user, or you will need to switch to the root user with the SU command)

Eg: shutdown in less than 5 minutes: shutdown-t 5

Restart after shutdown: shutdown-r

Cancel shutdown operation: shutdown-c

Other parameters can refer to the following table:

2.reboot: Shutdown command. (Fastest shutdown, no memory or buffer data saved to memory)

Parameter options:

3.PS: See which programs are executing and performing. Similar to the Task Manager under Windows.

Other parameters refer to the following table:

4.top: View the current program's execution scenarios and memory usage. (and PS difference: top command will be updated once a few seconds)

5.kill: Terminates a process that is executing.

Usage: Kill (-option) PID

Eg: cut off the stroke with PID 233: kill-9 233

The process of re-running 555: Kill-puh 555

6.date: Displays the current time and date

The command returned should be February 07, 2018, 09:24 P.M. 37 seconds (because my computer installed the virtual machine has not been adapted to Chinese, so the display has a problem)

Parameters refer to the following table:

7.cal: Calendar

Cal 02 2018

Linux common commands (iv)

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.