[Post] a Linux Command, a human civilization
SniperHe wrote: Today, I accidentally saw an introduction to a historical section of date implied in Linux on a blog. I was curious and tried it according to the methods introduced by others. Code:
The development environment is fedora13 (now it has exceeded 16 ). Vim editor + GCC, G ++ compiler.
# Include # include # include # include # include int main (INT argc, char * argv []) {If (argc! = 3) printf ("It's error \ n"); int S, D, C;
In kernel 2.6, initrd. IMG adopts cpio compression. It is no longer in the ext2 format used by kernel 2.4 and cannot be mounted using Mount-o loop. You need to use gunzip to decompress the package, and then use cpio to decompress the package.CP/boot/
Compared with Linux, I found out how stupid windows is.
First, if you do not want to use a vfat or NTFS-type low-energy File System in the first partition of your hard disk, Windows will not work (at least Windows 2000 and earlier)Second, install
Compilation and connection:
Compile a single source file. -C option, such as gcc-o aa. o-c aa. CPP otherwise, the system will prompt that the main function cannot be found; because some modules only provide Unit functions; there is no main function;
GPL is the product of the hacker spirit, from the birth of C language and Unix PDP-7 to now has more than thirty years of history.
They believe that everyone who uses their code is the same as they do, and they have the spirit and ability to
Document directory
MySQL and other scripts cannot be executed in Ubuntu Virtual Environment
Objectives:
Quickly establish the environment language test Deb package installation/Web application deployment.
See readme for https://github.com/wolf04
Http://www.libsdl.org/
To compile and install SDL:
1. Run './configure; Make install'
If you are compiling for Windows using gcc, read the FAQ:Http://www.libsdl.org/faq.php? Action = listentries & category = 4 #42
If you are compiling using Visual
1.2) 68013Chip Information
The chip data manual of Cypress 68013 is not listed here. You can download the specific information from its official website. The following figure shows the 56-foot CY7C68013A interface:
LA single chip is integrated
I. Currently, Linux uses the following methods for inter-process communication (IPC:
1. Pipelines (PIPE) and named pipelines (FIFO)
2. Signal)
3. Message Queue
4. Shared Memory
5. semaphores
6. Socket)
Ii. IPC details:
1. Pipeline Communication
(1)
I. chicken ribs
1. Signal communication: limited amount of information that can be transferred. For pipeline communication, only non-formatted byte streams can be transmitted. This will undoubtedly cause inconvenience to application development.
2.
I. chicken ribs:
1. Thread theory basis
(1) Reasons for thread introduction:
In Linux, to start a new process, you must allocate it an independent address space and create a large number of data tables to maintain its code segments and stack
I. chicken ribs
1. There are two methods for file programming in Linux:
(1) Linux system call
(2) c language library functions
The difference between the two lies in that (1) it depends on the Linux operating system, and (2) because it is a standard
Provides time services for users on the network, that is, the current time when the network user returns the server;
Record the IP address of the network user sending the request (save it to a file );
Write the time service client timeclient, which
Original socket (sock_raw). With the original socket, We can compile functions that cannot be implemented by TCP and UDP sockets.
Note that the original socket can only be created by a root user.
/********************* Dos. c ******************/#
Basic Idea: handle the USB flash drive, enable it, and install grub4dos. Next, integrate various boot disks to enable grub4dos. Production process: I,Enable USB flash driveCan be started to handle the U disk boot methods are USB-HDD, USB-ZIP and USB-
It took a long time to program the Linux character device for the first time today. The problems found are as follows:
Note the following:
1. the compiling module does not need to compile the kernel. Compile the device module in Ubuntu as follows:
2.
Getting started with Linux is a common topic. Many beginners do not know how to learn Linux more effectively. Actually, it's easy to learn about Linux: Read more books and practice more! A good book can help you learn more with less effort. This
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