This article is the Linux version of a method for locating memory leaks (Solaris), which uses GDB. Mainly introduces the example part. See "A method of locating memory leaks (Solaris)." Example:
To simulate a new failed program:
#include
Class ABC
{
There is a NTP pack in Linux that can automatically calibrate time and is very useful.
The Debian system installs the NTP school pack:
1 Apt-get Install Ntpdate
CentOS System Install NTP time pack:
1 Yum Install NTP
School Time Order:
1
Linux View system Configuration common commands
System
# uname-a # view kernel/Os/cpu information # head-n 1/etc/issue # View the operating system version # cat/proc/cpuinfo # View CPU Information # hostname # View computer name # LSPCI-TV #
The Linux namespace, abbreviated as NS, was introduced into the 2.4.19 kernel in 2002 and has grown to today for 15 years.
2010 years later, the domestic cloud computing burst, followed by the rise of the 2013 Docker, NS only as an indispensable
Guide
Netstat is a command-line tool that tells us all the Tcp/udp/unix socket connection states in the system. It lists all connections that are already connected or waiting for the connection state. This tool is especially useful when
There are two ways to achieve this:
Method 1: Using the SVN merge
1 First SVN up, to ensure that updates to the latest version, such as 20;
2 then use the SVN log to view the history changes and find the version to restore, such as 10. If you want
All say that there is no Mac, Android, the best use of Linux system to develop, the internet looked at, easy to do with the Linux graphics do a good job is the most ubantu, (ISO file can go directly to Ubantu official website to download), so
1.vim code editing tools to solve the VI writing code, the direction key appears incompatible
sudo apt-get install vim
2.minicom serial Debugging tools, with embedded Development Board serial debugging
sudo apt-get install minicom
3.nfs Server
A problem has been encountered today. A text file can not be deleted, it seems to be to fill the lsattr chattr knowledge, because this involves a lot of security things
The Chattr command is powerful, some of which are supported by the Linux kernel
When you encounter no flash plugin, download one to the official website:
http://get.adobe.com/cn/flashplayer/
I downloaded is: install_flash_player_11_linux.i386.tar.gz
OK, start the installation.
1. Find the correct directory
#whereis Firefox
The load situation of a server is generally viewed from memory, CPU usage, and disk IO and network io, which are monitored separately (environment sentos6.7)Memory Load Condition:Free This command can see the memory usage can be left over: use as
Linux Basic Environment Settings
Here we have a few things to set up:
* Static IP: Why the need to set static IP (usually use Linux system is required to provide services, as the server needs a fixed IP address, is a static IP address. This will
1. Using SSH to access remote command line 1.1 OpenSSH introductionOpenSSH This term refers to the software implementation of the software used in the system SecureShell . Used to run the shell securely on a remote system. If you have a user account
1.ifconfig is used to obtain information such as NIC configuration and network status, in the format: ifconfig [network Devices] [parameters]The 2.uname command is used to view information such as the system kernel version in the format: uname
Linux is a multi-user time-sharing system, want to use system resources, you must have a legitimate account password.UID and GIDNormal user root user system userThe UID equivalent to the school number GID equivalent class, each student has a unique
Three types of permissions for files:读、写、执行 owner: 属主, u group: 属组, g other: 其他, o all 所有, a
The permissions of a file on whether the user has read and write permissions, first determine whether the
1,STARTX: switch to the graphical interface2,PWD: View current directory3,whoami: View Current User4,CD:1. command format:CD [directory name ]2. command function:Toggle Current directory to DirName3. Common examples3.1 Example One: Enter the
File attributes (Ls-lhi see the information)1.1 First column: Inode number 1.1.1 What is inodeThe file is stored on the hard disk, and the minimum storage unit for the hard disk is called "Sector" (sector). The size of each "sector" is 512 bytes
① PrecautionsLinux does not differentiate files by extension nameDefault: Compressed package. gz. bz2. tar.bz2. tgz binary compression package. RPMall devices including hard drives, U disks, discs must be mounted before they can be used/bin/Storage
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