Statistics The total number of files for the specified suffix command: find. -name *.cpp | Wc-l statistics The total number of lines of code in a directory and the number of individual file rows: Find. -name *.h | Xargs wc-llinux number of files in
Reprint: http://q928856957.iteye.com/blog/22278501. Set-eThe-e parameter of the SET command, Linux comes with the following description:"Exit immediately if a simple command exits with a Non-zero status."In other words, the code that appears after
1.Linux Desktop system, Ubuntu preferred2. Server-side Linux system, preferred Rhel or CentOS, both of which are preferred CentOS, if the company is rich, do not care about the cost of software can also choose Rhel.3. If the security requirements
Transferred from: http://www.cnblogs.com/ggjucheng/archive/2011/12/14/2287738.html1 Introduction2 Simple compilation2.1 Preprocessing2.2 Compiling to Assembly code (compilation)2.3 Assembly (Assembly)2.4 Connection (linking)Compilation of more than 3
1. Create a new repository on GitHubGo to your GitHub, https://github.com. Create a new repository named Github.myblog2. Local Installation Jekyll-bootstrapIf the local CentOS does not have git, use yum to install$ yum install gitCloning
1. Signal (synchronization between the two processes)struct semaphore Power_sem; Sema_init (&pdata->power_sem,1); down (&pdata->power_sem); up (&pdata->power_sem); 2. Mutually exclusive amountstruct mutex Led_mutex; Mutex_init (&led_mutex);
There is no way to do this directly in the parameters of the top command.Man top wroteNAMETop-display Linux TasksSynopsisTOP-HV | -bchiss-d delay-n iterations-p pid [, PID ...]The traditional switches '-' and whitespace are optional.-b:batch mode
Linuxc obtain the NIC status (UPorDOWN)
The source code is as follows:
#include
#include
#include
#include
#include
char *net_detect(char* net_name){ int skfd = 0; struct ifreq ifr; skfd =
Install some basic software after ubuntu is installed.
Preface: the system has been reinstalled for some reasons. Some software installed in ubuntu has to be re-installed, which is a little troublesome. Sort out the installation steps.
#=============
Linux/proc/cpuinfo file description
Processor: Number of the logic processing core in the system. For a single-core processor, the course considers it as its CPU number. For a multi-core processor, it can be a physical core, or a virtual logical
Use XShell to link the CentOS and xshellcentos of a Virtual Machine
In Windows, XShell is used to connect to the CentOS of VirtualBox. The connection fails. It turns out that the network connection method selected by the virtual machine is incorrect.
Dynamic wallpapers Add dynamic backgrounds to Linux releases
We know that you want to have a Ubuntu Desktop with style to show off :)
It is easy to build an excellent working environment with a little effort on linxu. Today, we will discuss the
LFS Chinese Version manual release: How to build your own Linux release
Have you ever thought about creating your own Linux release? Every Linux User wants to make a release of their own version at least once when using Linux. I am no exception. As
Linux_Logo-command line tool for outputting the color ANSI Linux release logo
Linuxlogo (or linux_logo) is a tool that uses color ANSI code to generate a release logo with system information under Linux Command lines.
Linux_Logo-Output Color ANSI
Two classic macro definitions in Linux
This article first introduces the classic macro definition in Linux, feels the wisdom of geeks, and then paves the way for the next article based on the classic definition.
Offsetof macro definition:
// Get the
CentOS-6.5 system basic optimization with optimization script
Optimized content:
(1. Set history
(2. Add common users and set sudo Permissions
(3. Remote root User Login prohibited
(4. Modify the remote port
(5. Streamline startup Server
(6. Disable
File Permission control in linux
In a linux environment, collaborative development may encounter many situations. We need to set specific permissions for these accounts.
Here we need to use ACL
1. Add an account and set the password
useradd
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