Log the Linux commands used in the work

Source: Internet
Author: User
Tags memcached disk usage

Working on CentOS in daily work, there will always be some common commands that can't be remembered, a special opening, records of those commands, learning and time learning.

RPM Action Class command:To view the RPM installation path:1.rpm-qa|grep Memcached2.RPM-QL memcached-1.4.13_02-6.x86_64 Yum Displays the available MySQL files from the sourceYum List | grep MySQLDelete rpm:rpm-e--nodeps PackageName Server Status Reference Class command:To View a process:Ps-auxTo view ports:lsof-i:11211Find Filesfind-name xxx (recursive lookup starting from current directory) To view the number of logical CPUs:cat/proc/cpuinfo |grep "Processor" |wc-lTo view memory information:free-mTo view your hard disk usage:df-hTo view the CentOS system version:Cat/etc/redhat-releaseTransfer files between Linux VMS: SCP httpd.conf[email protected]:/HOME/OCP Split file:

First Use

Wc-l BLM.txt Read the BLM.txt file how many lines there are

Re-use the split command

Split-l 2482.. /blm/blm.txt-d-a 4 blm_

BLM.txt the file into several small files, 2482 lines per file (-l 2482), file prefix is blm_, the coefficient is not a letter but a number (-D), the suffix factor is four digits (-a 4)

Log the Linux commands used in the work

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.