Check the number of characters in Linux

1. view the kernel version: 1) [root @ Linux download] # Cat/proc/versionLinux version 2.6.18-194. EL5 (mockbuild@builder16.centos.org) (GCC version 4.1.2 20080704 (Red Hat 4.1.2-48) #1 SMP Fri APR 2 14:58:35 EDT 2010 2) [root @ Linux download] #

Linux Kernel code tree

Linux-2.6.29 |-Arch: Contains code related to the hardware architecture |-Block: hard disk scheduling algorithm, not driver |-Firmware: firmware |-Documentation: Standard official documentation |-Dirver: Linux Device Driver |-Fs: The file system

Introduction to message queue instances in Linux

During multi-task Programming in Linux, it is inevitable that the IPC technology will be used, but many people only know the technology and do not know how to use it. For everyone to learn Linux well, I am not talented. I posted my own message queue

Common Linux commands: view system information

1. view the number of operating system digits File/sbin/init Display /Sbin/init: Elf 32-bit LSB shared object, Intel 80386, Version 1 (sysv), dynamically linked (uses SHARED libs), for GNU/Linux 2.6.15, stripped There is another way: Getconf

Common Linux commands: View CPU Information

Many laptops or desktops are installed with Ubuntu or other Linux operating systems. In Windows, you can easily and quickly see the current CPU information. How can we quickly know it in Linux ?! It is also very simple. If you don't believe it,

Boost download, install, and compile the configuration User Guide (including Windows and Linux)

Http://www.cnblogs.com/wondering/archive/2009/05/21/boost_setup.html     Theoretically, this article applies to various boost versions, especially the latest version 1.39.0. It applies to various C ++ compilers, such as vc6.0 (some libraries do not

Preparations for the Linux/Windows library

Now that you are trying to develop programs in Linux, some preparations are necessary, such as makefile and shell. Now you have learned how to write makefile, taking advantage of this learning opportunity, I looked at the current General makefile of

Linux communication-semaphores

Main reference program: http://hector.blog.51cto.com/4229131/758930 # Include # include # include # include # include # include # include Union semun // You must define {int val; struct semid_ds * Buf; unsigned short int * array; struct

Shared Memory for Linux inter-process communication

# Include # include # include # include # include # include # include # include # include # define perm s_irusr | s_iwusrint main (INT argc, char ** argv) {key_t shmid; char * p_addr, * c_addr; pid_t PID; If (argc! = 2) {fprintf (stderr,

Basic Linux operations

1. view the number of CPUs CAT/proc/cpuinfo | grep 'cpu cores' Because CAT/proc/cpuinfo does not display a real number 2. Diff T1: AaaBbb CCC1112233DdDddd T2: AaaBbbbCC1111A2233TttttADF Diff T1 T2 The output is: 2, 5c2, 5 // The

Introduction to Linux less commands

Http://blog.csdn.net/caihaijiang/article/details/6113419 The less command can display files or other outputs by page. It is similar to the MOE command, but it is much more powerful than the more command. In less, the navigation command is similar to

Ultimate Solution to terminal garbled characters in Linux export lang = zh_CN.UTF-8 export lang = en_us

Reprinted: http://hi.baidu.com/xuehuo_0411/blog/item/98559cf46107573fbd3109f6.html When using the Linux terminal tool securecrt, Every time SVN is submitted to enter Chinese logs, it is impossible to enter Chinese characters. SVN ci-M "" At this

Add a dynamic link library in Linux

To sum up, there are three primary methods: 1. Change the/etc/lD. So. conf configuration file, and then refresh Vim/etc/lD. So. confAdd/where/you/install/libSudo ldconfig 2. Use ln to link the required so file to the/usr/lib or/lib

View machine configuration commands in Linux

CAT/proc/Cpuinfo Or Vim/proc/Cpuinfo View System Information CAT/proc/Cpuinfo-CPU (I. e. Vendor, MHz, flags like MMX) CAT/proc/interrupts-interrupt CAT/proc/ioports-device IO port CAT/proc/meminfo-memory information (I. e. mem used, free, swap size)

Analysis of/etc/profile,/etc/bashrc, ~ in Linux ,~ /. Bash_profile ,~ /. Bashrc

/Etc/profile: This file sets the environment information for each user in the system. When the user logs on for the first time, this file is executed.And collect shell settings from the configuration file in the/etc/profile. d directory. /Etc/bashrc:

Five methods of file exchange between Linux and Windows in VMware

Five methods for Linux file exchange on windows in VMwareThe first method adopts the NetBIOS protocol. Samba is installed in Linux. Smbmount // ip/sharename/mount pointNetBIOS is not stable enough. Sometimes it cannot be mounted. You also need to

Automatic Execution of script files in Linux

Automatic Execution of script files in Linux Since the recent project involves the automatic running of Linux shell scripts and script files, I plan to conquer it by writing a blog. Let's learn together: This article also adopted some excellent

Environment variables in Linux

Environment variables in Linux In Linux, When you input a string in shell or a string in shell, the system will find it in the Set environment variable. There are three ways to set the environment variable, each has its own use.1. Modify the

Format disks and partitions in Linux

If a new hard disk is added, it is automatically detected in Linux. It is/dev/SDD. to partition, we should first clarify something about the partition: A disk can be divided into 16 different partitions, which mainly correspond to three partition

Linux INIT program analysis (continued)

3. upstart IntroductionUpstart is an event-based init substitution program, which means that both the start and stop of the service are based on event communication. Upstart is being developed by Scott James remnant, which was initially used for the

Total Pages: 5467 1 .... 4851 4852 4853 4854 4855 .... 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.