Today the company testing Linux server hard disk is not enough, mainly MySQL data file is too big, bought a 500G hard drive back, here to record the new drive methodPS test server motherboard is too bad, there is no redundant power interface, only
1. Show only Current directoryVim ~/.BASHRCFind Location:if " $color _prompt " Then PS1= ' Else PS1 = ' ' fiReplace the two lowercase w with the upper case W, then source ~/.BASHRC2. Terminal color beautificationVim ~/.BASHRC then this
We're working on Linux to tell the file which owner it belongs to and which group it is. So we need to know how to set up ":Set the file owner, groupChown:change owner>chown Master filename>chown. Group filename>chown, master. Group filename>chown-r
Transferred from: http://www.cnblogs.com/laov/p/3541414.html#zhilingIntroduction to Linux and Ubuntu InstallationCommon directivesSystem administration CommandsPackaging compression-related commandsShut down/Restart the machineLinux PipelinesLinux
1) Check the physical layer physical layersIP link is etho, see if the network card stat up, the IP link set eth0 up to the UP network cardor whether the Ifconfig eth0 can acquire IP2) Check the data link layerDid arp-n learn about Mac?3) Network
Find command (5 stars)Find/data-type-f-name "test.txt"//Find a name file of a certain typeFind/data-type-f-name "Test.txt"-exec rm {} \; Execute a command when found, delete content hereFind/data-type-f-name "*.txt"//* symbol for all, will branch
Read files commonly used in Python programs:f = open ("___", ' R ')For line in F: #这里每次读取文件的一行, line is a string and the end of the string includes ' \ n '!!!Print LineF.close ()Transferred from: http://www.jb51.net/article/58002.htm 1. Open ()
1.Output RedirectionLinux The default input is the keyboard, and the output is the monitor. You can use redirection to change these settings. For example , when using the WC command to manually enter a text to calculate the number of characters,
# total number of cores =Number of physical CPUs × number of cores per physical CPU # Total Logical CPUs=Number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUsCat/proc/cpuinfo|grep
Linux Directory Operations Command PWD New Linux operations, Common command directory
PWD command
Grammar
Options
Parameters
Instance
PWD commandThe PWD command is the full path to
Linux Order of CP detailedHey, another week has passed, how is everyone, in this week time, small series but also learned a lot of new knowledge. linux CP command, here's CP but copy 650) this.width=650; "Width=" 417 "height=" 489
Configure in Menuconfig:Details of kernel configuration options and deletionsPart I: Delete allCode maturity levels Options---> Codes maturity level option[]prompt for development and/or incomplete code/drivers is selected by default, which displays
Linux common command LS New Linux operations, common commands
ls command
Grammar
Options
Parameters
Instance
ls commandThe LS command is used to display the target list, which is a
Overview and management of disk quotasWhy do I create a disk AmountWhen the disk space on the Linux root partition is exhausted, Linux will no longer be able to create new files (including temporary files that the program runs), causing the service
First, install JDK reference postInstalling JDK with Yum (CentOS)1. See which JDK versions are available in the Yum Library
12345678910111213141516171819
The expr command is a manual command-line counter that is used to evaluate the value of an expression variable under Unix/linux, which is generally used for integer values or for strings.– The format is:Expr expression (the command reads in the
textPlaceManagement ToolsWC(word count)StatisticsfileinsidecapacityWC command is used to Statistics the line of the file number , Word Number of Knots , separated by a space Open the character number of words Informationlanguage Law: WC [ filename ..
Linux Command -- iostat, linuxiostat
Iostat -- I/O statistics (input/output statistics)
1. Role
List the I/O status of the entire CPU and interface device in real time.
2. Installation
Iostat is a sysstat package and can be directly installed using
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