A simple example of select in Linux:
# Include # include # include # include # include # include int main () {int keyboard; int ret; fd_set readfds; char key; struct timeval timeout; char * Path = "/dev/tty"; keyboard = open (path,
1. awk obtains the specified item in the file: The system reads a row of data and determines the specific item based on the "$" matching number. Then, it continues to read the next row until the end of the file.For example:Awk '{print $2}' awktest.
1. Write the driver sourceProgram
2. Modify the kconfig file in the directory and add the configuration options supported by the system for the driver.
3. Enter "make menuconfig", check the corresponding driver option, compile the system, and
Search for string commands in Linux Files: grep: Use 'grep' to search for text files
If you want to find a string in several text files, you can use the 'grep' command. 'Grep' searches for the specified string in the text.
Suppose you are searching
X Window solution on Windows: putty + xming
1. Putty has many versions. puttray and protable putty are used by many people.
You only need to enable X11 forwarding when connecting to ssh.
Connection --> SSH --> X11
[V] Enable X11 forwarding
In the past two days, the customer asked how to use the dynamic library in the issued SDK, but he had not done it before. From yesterday till now, he finally got it done.
Here, we only describe the simple method.
Reference URL:
Http://www.oschina.
Install Apache in Linux
1. Go to www.apache.comto download apache. here I will download httpd-2.2.3.tar.gz
2. Copy the compressed file to the installation directory. I will put it under/usr/local /.
3. Unzip this file tar xzvf httpd-2.2.3.tar.gz
We will mainly talk about system accounting and System Log Management in Linux and how to use some tools to manage log information more conveniently and effectively.
After using the above method to install the Linux server and some basic
This method has been verified multiple times in the fedora system.
Suppose you have a Linux system that can work normally. Now you want to copy a system to another hard disk to enable this backup hard disk immediately when the system crashes, that
Author: zhaojianjun
Source: http://www.opendesktop.net/modules/...dex.php? B _id = 78
During encoding and conversion on Linux, you can use both the iconv function family programming and the iconv command, but the latter is for files, converts a
Explanation of DD commands in Linux
1. dd command Introduction
Function: Copies the specified input file to the specified output file, and supports format conversion during the copy process. You can use this command to implement the diskcopy command
1. WC count or number of lines: Echo "Hello \ n leeboy" | WC-L: Output 2: two lines
Echo "Hello word \ n leeboy" | WC-W: Output 3, indicating 3 words
2. The etc/passwd and etc/shadow files both store the user and password. Shadow has strong security
Signal mechanism in Linux kernel-management structure of signal Mechanism
Kernel version:2.6.14
CPU architecture:ARM920T
Author:Ce123. (http://blog.csdn.net/ce123)
The signal is only a number. 0-31 represents different signals, as shown in the
Sina Weibo: @ song Baohua Barry at @ micro disk shared the "Linux device driver development details" 2nd version 1080p electronic version, intends to upgrade to version 3rd, 3.6 kernel, Cortex-A9 SMP, Device Tree, dvfs, suspend/hibernation, big.
About partitions
If a potential hacker attempts to attack your Linux server, he will first try Buffer Overflow. In the past few years, buffer overflow is the most common form of security vulnerabilities. More seriously, the buffer overflow
1. Process special file names
Suppose there is a file name named "-ee" in Linux. If we want to operate on it, for example, to delete it, enter the RM-ee command in the command line according to the general deletion method, the interface will prompt
001: create a general user (centos) in the Administrator group ):Generally, you can log on to the root desktop by running the "Su-" command and entering the correct root password. Now, you have created an Administrator group, only users in 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