Learn to use the Linux private dishes VI of Brother BirdThe VI compiler is preinstalled on Linux, which makes it easy to view and edit documents. Learning VI Learning the basics of Vim, VI has a lot of commands, need to practice memory use
1. Remove the Linux self-brought JDK (just to keep the system clean, or not to delete)The complete identity system has been deleted.2. Download the JDK and select the appropriate JDK version as neededWebsite address:
Recently, there is a business scenario needs, you have to put some of the user on the server to kick off, oh, nonsense not to say, methods have two1. First Use W(or who) to see who landed on the server:2. Below, we need to kick off the Caesar user
"LVM"
What is LVM?
LVM (Logical Volume Manager) Logical volume management, is a partition of one or more hard disks in a logical collection, equivalent to a large hard disk to use, when the hard disk space is not enough to use, you can
The importance of permissions to a file: (mainly for the contents of the file, no relation to the filename)R: The actual contents of this file can be read.W: You can edit, add, or modify the contents of the file (but not delete the file)X: The file
Mpstat is a real-time system monitoring tool for Linux. Some statistical information about its report and CPU, which is stored in the/proc/stat file. In a multi-CPU system, it not only can view the average status information of all CPUs, but also
1. at--to perform a task at some point in the futureUsage examples: at time: Set a point in time At>command At>ctrl+d Specify time: Absolute Time: HH:MM,DD. Mm. Yy,mm/dd/yy relative Time: now+3minutes units: minutes, hours, days, weeks Blur time:
The Linux kernel can receive certain command-line options or boot-time parameters when it is started. You can manually pass these parameters to the kernel in such a way that the kernel does not recognize some hardware and cannot set hardware
Process Status View command:Ps:process State-O: Specify display fieldsThere are two styles of process status display:BSD Style: Non-additive when usedSYSV style: When use plus-BSD Style:A: Show all terminal-related processesU: Shows which user
The conversion of the IP of the string to the 32 IP说明 网络上的IP都是数字加点(192.168.0.1)构成struct in_addr结构使用32位的IP,如IP(C0A80001)是192.168.0.1int inet_aton(constcharstruct in_addr *inp)将a.b.c.d的IP转换为32位的IP,存储在 inp指针里面char *inet_ntoa(structin)
Today you need to delete the line breaks inside the file, such as a file a.txt:1,2,34,5,61,2,34,5,61,2,34,5,61,2,34,5,61,2,34,5,61. Use Vim to remove newline charactersVim input command:%s/\n//g2. Use SED commands, such as sed ': t; N;s/\n//;b T ' a.
First, the system level of Linux4 applications3 Library2 cores1 hardwareWhen running the program, the application is dispatched to the hardware execution by the kernel;Third, the user interface1 CLI Command PromptShell type: sh,csh,tcsh,bash,ksh,zsh2
Thread PropertiesProperty values cannot be set directly and must be manipulated using related functionsThe initialization function is pthread_attr_init, and the function must be called before the Pthread_create functiontypedefstruct{ int
Thread Mutex mechanismA mutex variable is like a "lock", which is the primary way for thread synchronization and protection of shared dataMutexes can be used to prevent competitionThe basic concept of mutex in pthreadsAt any time, only one thread
Ubuntuvim Chinese garbled characters
Add Chinese character encoding:
$ Sudo vim/var/lib/locales/supported. d/local
# Add the following Chinese Character Set
Zh_CN.GBK GBK
Zh_CN.GB2312 GB2312
Zh_CN.GB18030 GB18030
Make it take effect:
$ Sudo
Disable and enable ping on Linux servers
Modify/proc/sys/net/ipv4/icmp_echo_ignore_all to 1. Disable ping from 0.
Sysctl-w net. ipv4.icmp _ echo_ignore_all = 1.
Another method is iptables-based ping.
Iptables-a input-p icmp -- icmp-type 8-s 0
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