Select example in Linux

  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,

Leeboy's Linux study 5

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.

Linux self-study _ new driver steps

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 the string command grep in the Linux File

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

Putty + xming remote logon to Linux Gui

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

Dynamic library generation and use in Linux (simple)

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 and configure memcached (and libevent) in Linux)

Install libevent first Mkdir downloadcd downloadwget http://monkey.org /~ Provos/libevent-2.0.12-stable.tar.gztar-zxvf libevent-2.0.12-stable.tar.gzcd libevent-2.0.12-stablemakesudo make install Then install memcached. Mkdir

Install Apache in Linux

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

Linux system security-Log

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

Back up a Linux system hard disk I

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

Character Set encoding conversion in Linux (zz)

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

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

Leeboy's Linux learning 12 environment and environment variables

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

Linux time functions

Function: # include char * asctime (const struct TM * TM ); Char * asctime_r (const struct TM * TM, char * BUF); char * ctime (const time_t * timep ); Char * ctime_r (const time_t * timep, char * BUF); struct TM * gmtime (const time_t * timep

Signal mechanism in Linux kernel-management structure of signal Mechanism

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

Share "Linux device driver development details" 2nd version HD electronic version

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.

Senior Linux System Administrator network security experience (1)

  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

Eight typical Linux operating system applications

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

Linux FAQ & tips

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

Linux Conditional Variable routine

# Include pthread_mutex_t mutex = pthread_mutex_initializer; pthread_cond_t cond = pthread_cond_initializer; void * thread1 (void *); void * thread2 (void *); int I = 1; main (void) { pthread_t T_A; pthread_t T_ B; pthread_create (& T_A,

Total Pages: 5467 1 .... 5292 5293 5294 5295 5296 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.