In the masterProgramThe global variables in the dynamic link library are correct and undeniable, but this requires the dynamic library to be added when the program compiles the link, and use extern to declare the variable in the program to be used,
The Linux kernel defines the list_head data structure. The fields next and Prev indicate the forward and backward pointer elements of the universal two-way linked list, respectively. List--head (list_name): Create a New linked list list_add (n, p):
Today, we finally completed the Linux network configuration installed in VMware more than 10 days ago.When I was just using a virtual machine, I was fascinated by its magical virtual functions, because I always wanted to install linux on my computer,
The line breaks in Windows and Linux are different. I have encountered several problems ~ When creating users in batches, new users cannot log on because my text is generated in windows and the line feed is in Windows format. in Linux, The newusers
In Linux, tcpdump is usually used to capture network packets. You can use Wireshark to open the Analysis Network Package. When using tcpdump, you generally need to use the root user.
By default, no parameters are included:Start directlyTcpdumpAll
# Include ;
# Include ;
Main (){Pid_t PID;PID = fork ();
If (PID Printf ("error in fork! ");Else if (pid = 0)Printf ("I am the child process, my process ID is % d/N", getpid ());ElsePrintf ("I am the parent process, my process ID is % d/N",
Embedded Linux Online Resources
Download the required Linux Versions:Http://iso.linuxquestions.org/
1. standard Linux version
Caldera: http://www.calderasystems.com/
(2) Corel: http://linux.corel.com/
(3) Debian:
### Install from source code ###
If conditions permit, installation from source code has many advantages, at least the latest version can be installed. Every version of git is constantly trying to improve the user experience, so it is better to
1. Environment
Debian GNU/Linux 6.02. Install xinetd
The telnet server is managed through xinetd (Super Internet Daemon). Therefore, xinetd must be installed first. The installation command is as follows:
# Apt-Get install xinetd
3.
In Windows, everyone knows to directly run calc (c: \ windows \ system32 \ calc.exe). Please open the calculator. Note: Calculate vt. & VI. calculation; calculator N. calculator. Calc is short for this computation.
CA represents calcium in
Usage and differences of soft links and hard links in file programming in Linux
In Linux, what is used to identify a file?
First, enter the command LS-I on the terminal to see what information will appear.
Think @ Ubuntu :~ $ LS-I
Displayed
Kernel Introduction
Kernel is the core of an operating system. It manages system processes, memory, device drivers, files, and network systems, and determines system performance and stability.
An important feature of Linux is its open source code.
Compiling the kernel is indeed a suffocating and boring process. After several days of hard work, we finally succeeded. Thank you for your technical support for "programming Sleepless Nights ".
I downloaded the Linux kernel version from Red Hat 9
The first statement and initialization are not described in detail here. Please refer to my previous blog post the corresponding code here:
# Ifndef _ linux_list_h # DEFINE _ linux_list_h # define offsetof1 (type, member) (size_t) & (type *) 0)->
The name of the article is very good. Here is just an interesting record of what I encountered when studying the Linux kernel source code, but I do not know what the problem is.
*****
1) Why can't interrupt handler sleep, or, more strictly, be
Most people on the Internet say that they should add the window partition code in fstab.
My system is centos. After using the above method, the sh script file cannot be executed in the Windows partition. The above method is not easy to use.
The
When using a CD, floppy disk, or USB flash disk in Linux, you must run the mount command first. The mount command will specify these storage media as a directory in the system, and then directly access the corresponding directory to read and write
If multiple scanf () instances are used consecutively in Linux, the following error occurs:
While (1){Printf ("Please input :");Scanf ("% s", pstr );}A problem occurs during the running of the program. After one input, the program will keep
1. After the hard disk-installed Linux is started on the GUI, you can use CTRL + ALT + F1 ~ 6. Switch to the character interface, and then use CTRL + ALT + F7 to switch to the graphic interface.
CTRL + ALT + F7 characters to graphicsCTRL + ALT + F6
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