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