1. Press Turn clangsudo apt-get install Clang2. Write the test procedure MEMLEAK.C#include #include int main () { int *mem; Mem=malloc (sizeof (int)); if (MEM) return 1; *mem=0xdeadbeaf; Free (MEM); return 0;}3. Run code static
Recently I am facing a problem, how to differentiate a problem of library-function from application problems.for solving t His problem, we need-know some knowledge about share-library and basics in linux.for dynamic libraries, they is loaded To
Use the LN command to create a link to a file in Linux (soft links or hard links) Use of hard Links: ?
1
[email protected]:~# ln 2.txt e.txt
?
1 2
[email protected]:~# ls1.txt 2.txt 3.txt
1. The kernel provides three different ways to record time:Wall Time(or real time): actual time and date in the real worldProcess Time: The time, a process spends executing on a processor includes user times and system time themonotonic Time: Use
A desktop Ubuntu memory total 4G, but free memory only 100MNote Use the top command to see the true free memory. Here's another command to see how much memory is actually used.Watch-n 1 Cat/proc/meminfoSearch found that there are three ways to
Linux under Ntpdate time synchronizationNTP server configuration (scratch, defragment later)Time Synchronization methodSync Command # ntpdate NTP server domain name or IP example: # ntpdate 192.168.1.10Automatically run synchronization time script
Sometimes a user is not good, but do not want to delete his account just want to give him some color to see, or for some kind of authority management do not want him/her to use this account, then frozen account is the best method, Linux account
After a period of time-driven personal sentiment, no matter what drive, to less detours, common driving workflow should be as follows:1, reading, look at the data, understand the driving principle: the kernel of this type of drive architecture,
Jiffies is each clock interrupt, will add 1, which leads to a problem, regardless of jiffies (generally unsigned long type) How many bytes, always have overflow time.More extreme, when the jiffies is 0xFFFFFFFF, the next moment is 0x0.This way, when
Dig Dig [option] FQDN [@server] @server: If you do not use/etc/resolv.conf as the DNS query, you can fill in the other IP Options: A number of relevant parameters, mainly +trace,-t type and-X are the most commonly used +trace: It's from. Start
From time to time, linux will give a beep sound on the virtual machine, and the people who listen are upset. As a result, they finally cannot stand it. They decided to completely solve this problem. The solution is as follows:
1. It takes effect
Linux compares two files with two commands:
(1)Diff(2)Vimdiff
Cp/etc/grub. conf hello
Add zhangsan at the end of the hello File
Use diff to compare the differences between the two files:
[Root @ rhel ~] # Diff hello/etc/grub. conf
18d17
Vimdiff
This script is mainly used for mysql database master-slave in normal circumstances, for some reason, you need to switch the IP address, mainly to switch the IP address, mainly through the Intranet to switch the public IP address, the script code is
Because there is a project that requires asset management using active RFID, you need to use python to read the serial content of the card reader. Therefore, the pyserial module is installed, which makes it easy to use and sort out common functions.
How to back up and restoreExchangePublic folderTutorial Background:Xiaonuo has implemented internal and external email communication by deploying an email system. Exchange greatly accelerates the flow of internal and external information of the
I think it's no stranger to all of us. Here I will not talk much about it. Many of our friends use it as an alarm for the monitoring system and send an alarm text message to the O & M Administrator via February, it is relatively simple to install on
I. preparations before configuration: 1. install vsftpd package yuminstallvsftpd2. view vsftpd startup status chkconfig-listvsftpd3. set vsftpd2345 to the startup chkconfig-level2345vsftpdon4. view the Firewall Status/etc/init. d/iptablesstatus5.
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