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
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
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
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,
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
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
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
# 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,
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
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
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
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
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)
/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 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
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
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
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
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
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