Usually we add a version query command to the program development, such as "-V", which typically shows the build version, and the build date, so it's convenient to automatically add this information every time you compile.
let's talk about adding
Absrtact: This article mainly explains the implementation principle of the segmentation and paging mechanism in Linux, related macro definition and function function.
Source: Memory Addressing (ii): segmentation and paging mechanism in Linux
Ethtool is the command used to query and set the network card parameters.
Overview: Ethtool ethx //Query ETHX network basic settings ethtool–h //Display ethtool command help ethtool–i ethx //query Ethx the relevant information
There are 3, 4 years of work under Windows, and the convenience that comes with it is self-evident. Recent whim, want to try the following Linux system, I heard that this can find a good job, so replaced the platform. In the Linux environment to
1. Environment Variables
Definition: To store information about the shell session and the working environment. It allows you to store in memory in order to run program and script access on the shell. (In short, it's the working
Allocation space, I think the first thing to know what to install under the directory, so it is good to decide how much should be allocated.
/root directory/bin to store the necessary orders/boot Store the kernel and start the required files,
Hello everyone, today 51 open source to introduce a profile in the configuration file, that is/etc/resolv.conf. Many netizens don't know much about the usefulness of this document. It is not complicated, it is a DNS client configuration file that
Pkg is a shorthand for Debian package, a suite management system specially developed for Debian to facilitate installation, updating, and removal of software. All Linux distributions originating from Debian use dpkg, such as Ubuntu, Knoppix, and so
The kernel module is a socket provided externally by the Linux kernel, which is known as the dynamic loadable kernel module (Loadable Kernel module,lkm), and is referred to as a module. The Linux kernel provides a modular mechanism because it itself
The value of path is a series of directories that Linux searches for when you run a program. You can see the value of path with the following command.
$ echo $PATH
For example, in a host, the user Yogin path value
The reason for the Chinese comment garbled is that the M file under Windows is GBK encoded, as long as all the M file into the UTF8 file, the display is normal. (in turn into UTF8 before, do not use MATLAB to open the M file, or the following steps
Forced to kill the process * * *
Ps-ef or Ps-aux View process $ ps-ef | grep Firefox
1. Give a part of the process name to see the conformance process
$ pgrep Firefox1827 Kill Pkill Description: "9" that is sent signal is 9,pkill and kill at this
This article has been transferred from Reille blog: http://velep.com/archives/815.html
Waiting queues play a pivotal role in the Linux kernel, and many Linux drivers are more or less involved in waiting queues. Therefore, for the Linux kernel and
Linux (Redhat as a template) to add a boot from the script there are two ways, first to simple;
First, add in the/etc/rc.local
If you don't want to stick the script, or create a link or something,
The
Step1. First, modify the script so that all of
Flow chart:
compile with GCC (gcc-pthread filename.c) ...
#include #include #include int buf[1000000]; int w=0,r=0; R is read pointer, w is write pointer int size=10; Buffer size pthread_mutex_t lock; Lock pthread_cond_t Is_empty; Whether the
Static library dependencies under Linux
background
Linux Static Library. A and dynamic library. So the difference is very large, static library is basically just a series of. o File plus symbol table, no link process, can not rely on the link to
The __read_mostly primitive will be defined as stored in the. data.read_mostly section
Include/asm/cache.h
#define __read_mostly __attribute__ (__section__ (". data.read_mostly"))
Thus, we can define the data that is often needed to be read as
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