Common operation and Maintenance commands for Linux systems

Source: Internet
Author: User

To view memory:
Top
To view disk space:
Df-hl
To write the cache to a file:
Sync
Clear Memory:
Echo 1 >/proc/sys/vm/drop_caches
To view memory:
Top
The Sync:sync command runs the Sync subroutine. If you must stop the system, run the Sync command to ensure the integrity of the file system. The sync command writes all non-writable system buffers to disk, including modified I-node, deferred block I/O, and read-write mapping files
Echo 1 0 Default 1 empty page cache 2 empty inode and directory tree Cache 3 empty all caches
To view the number of connections for a port:
Netstat-nat|grep-i "8080" |wc-l

Common operation and Maintenance commands for Linux systems

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.