It is often necessary to kill multiple processes. These processes contain common keywords. You can kill them with a command.
PS aux | grep "common" | cut-C 9-15 | xargs kill-9
The pipe operator "|" is used to separate two commands. The output
A few days ago, a SuperSocket user reported that all the parameters in the performance log of Linux are 0, because the performance log of SuperSocket is implemented by PerformanceCounter, so I suspect that the PerformanceCounter in Mono is not
How to Get Discuz recently! Apply Memcache to do some things and record the Memcache installation process.
Install the Memcache server in LinuxThe server is mainly installed on the memcache server, the latest version is memcached-1.3.0.Download:
In Discuz! The latest version of NT (Enterprise Edition) supports Load Balancing solutions on mainstream LINUX platforms, such as NGINX, HAPROXY, and LVS. This article is not so much about solutions as about how to build Discuz! NT Load Balancing
The mysql official website began releasing various versions of the 5.6 series starting in May,. the mysql series versions have been comprehensively refined, the following is a sharing record of the mysql5.6.10 source code installation process
First proftpd is an open source software, its official address is http://www.proftpd.org, the current highest version is: 1.3.1(non-stable version, the stable version is 1.3.download file for proftpd-1.3.0a.tar.gz
I downloaded 1.3.0 and uploaded it
Copy codeThe Code is as follows: # Sort the top 15 directories or files of a warrior by directory size
Du-xB M -- max-depth = 2/var | sort-rn | head-n 15
# List the file sizes of all subdirectories currentlyDu-h -- max-depth = 1
# List the 10
Strace and gdb are two common debugging tools in Linux. Here is a summary of the common parameters of these two tools during use, which will be used for future reference.
Strace debugging toolThe strace tool is used to track system calls during
VI is a character-only text editor standard in Linux/Unix. Because the mouse function is not supported, and there is no graphical interface, the operations must be completed through keyboard commands, and a large number of commands need to be
In traditional mode, the library function link is completed in the compiler, and all related objects are integrated into an executable file during compilation. In comparison, we can also postpone loading the library function link to the running
Debugging is an indispensable task in the development process. In Linux programming, gdb is usually used to debug our c/c ++ program. Because gdb can introduce many things, I will introduce several articles in detail here. I will introduce some
We have already introduced how to use gcc to compile code to generate files. However, when there are many projects, an automated compilation tool is often needed to help us complete this operation. In Windows, you can use Ctrl + F5 to complete
After GDB is started, you must set a breakpoint before debugging. In gdb, there are usually three types of breakpoints:
BreakPoint (BreakPoint ):
Interrupt at the specified position of the Code. This is the most commonly used one. The command used
Basic Concepts
Signals are a common concept in Linux. For example, we press Ctrl + C to interrupt the foreground process, and Kill the process through the Kill command. The following uses Ctrl + C as an example to briefly describe the signal
Linux C traversal directory and Its subdirectories
Copy codeThe Code is as follows: # include
# Include
# Include
# Include
# Include
# Include
# Include
Using namespace std;
Void listDir (char * path)
{
DIR * pDir;
Struct dirent * ent;
Int I
In Linux, The grep command is as powerful as the find command. The find command mainly looks for files, while the grep command is the content. The two work together to complement each other. over the weekend, I have made a good summary!
1. RoleIn
The library is essentially a binary format of executable code that can be loaded into memory for execution. The database is divided into static and dynamic databases.
I. Differences between static and dynamic libraries
1. Static function
Document directory
You can use the-D parameter to set the macro (macro) in the command line and set the macro value.
G ++ can link the. o object file to a program
If you want to link other library files, use the-I Parameter
By default, the
Technorati label: windows, linux, command
Like command line tools on Linux, such as grep and tail. If you want to use them on Windows, you can use cygwin and mingw to fulfill your wishes. But sometimes I think they are a little heavy, it is better
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