Address: http://blog.csdn.net/wind19/archive/2009/11/30/4905453.aspx
My testing environment is SuSE Linux 10.1.
Keep CT home page: http://expect.nist.gov/Latest stable version 5.45.0:
The "OD" command is often used to show the content of a special file:
Command name: OD
Signature method: od [-abcdfhilovx] [-A ] [-j ] [-n ] [-S ] [- T ] [-W ] [-- help] [-- version] [file...]
Description: displays the file content in the
In Linux, dynamic libraries are divided into two parts: 1) Compiling and 2) running.
If a dynamic library is used during compilation, you need to add-lpath-LXXX to specify the dynamic library. This is the same as the static library. Here, path is
1, The relationship between the child process and the parent process:
When a child process is created, it is almost the same as the parent process. It has the same address space as the parent process and executes the sameCode(Code Execution starts
Generally, the Linux SAMBA service is installed and directly enters the/etc/samba directory.
Open smb. conf,
[Gloabal] contains some global options that affect all sharing. The main option to be modified is Security =. the default option is
My original system is redhat9.0, kernel 2.4.20-8, compiled kernel 2.6.7, for reference only.
There are four parts: preparations before compilation-> compilation configuration-> compilation process-> run the kernel Frequently Asked
1. Slow logon via telnet:
CD/etc
VI resolv. conf
Clear the content
2. the root user cannot log on remotely:CD/etcCD Pam. dVI LoginComment out this line# Auth required pam_securetty.so // comment out this row
3. Mount the USB mobile hard driveMount
/***************** Server. c *************/
# Include # Include # Include # Include # Include # Include # Include
# Define Port 1234# Define backlog 1# Define maxdatasalize 100
Struct ARG{Int connfd;Struct sockaddr_in client;};Void * func (void *
Document directory
List of common Linux commands
List of common Linux commands
Command description$ Gusvpfs # I ^ Y4 _• Apropos word display and word-related commands. See thread security7 t + EM (e) yWhich command displays the complete command
Likely () andUnlikely ()Likely () and unlikely () can be seen everywhere in the 2.6 kernel. Why should they be used? What are the differences between them?First, make it clear:
If (likely (value) is equivalent to If (value)
If (unlikely (value) is
During Linux kernel module programming, parameters are often required to be passed to the module. The role of parameters is from the device number used to the operations that the driver should perform. for example, a SCSI Adapter Driver often has
Zieckey (http://zieckey.cublog.cn)Wait (waiting for the sub-process to be interrupted or terminated)Header file# Include # Include Define the function pid_t wait (int * status );Function DescriptionWait () will temporarily stop the execution of the
1. Because Linux does not use any acceleration tool on CERNET, it is really slow to access the Internet, so I want to share folders with windows in Linux to use some of the previously better stuff! To do this, you need to take the following steps:
1.
The functions or symbols defined in the export_symbol label are public to all kernel code. You can directly call them in your kernel module without modifying the kernel code.Export_symbol can be used to export a function as a symbol to other modules.
Premise: there is not much talk about it, and there is no way to connect with the operator. It is also a talk about too much.
How do I import zookeeper?
1. added the-G option to zookeeper.
2. parse the row gdb a. Out (Note: A. out must exist, or
Thread Data Processing
Compared with a process, one of the biggest advantages of a thread is data sharing. Each process shares the data segment that follows the parent process to conveniently obtain and modify data. But this also brings many
Open Main Menu = Alt + F1Run = Alt + F2Show desktop = CTRL + ALT + dMinimize current window = Alt + F9Maximize current window = Alt + F10Close current window = Alt + F4Capture full screen = Print ScreenTruncate window = Alt + Print Screen
Default
Test method:
1
Dd If =/dev/Zero of = tmp bs = 1 m COUNT = 10
Use the DD command to test the instant write capability.
The Iozone command is added to test the memory disk performance:
1
Iozone-a-I 1-I 0-C-G 5 m-N 1 m
My testing environment is SuSE Linux 10.1.
Keep CT home page: http://expect.nist.gov/
Latest stable version 5.43.0: http://expect.nist.gov/expect.tar.gz
Secondary CT depends on Tcl/tk, so install Tcl/tk before installing secondary CT.
Download
In Linux, The container_of (PTR, type, member) macro is used to pass in the Member Address PTR domain of the struct type. The first address of the struct variable is returned, which is defined as follows:
# Define container_of (PTR, type, member )({\
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