use ACK for code search under LinuxLinux | 2014-03-06 22:38:36 | 5,165 times Read | 0 review
1, installationwget Http://beyondgrep.com/ack-2.12-single-file
sudo mv Ack-2.12-single-file/usr/bin/ack
sudo chmod 0755/usr/bin/ack
2, the use of ACK case
1
Linux Real-time traffic monitoring (iptraf Chinese illustration)
After the installation of Red Hat 4, the default will be installed IPTRAF Network Tools, if you do not fully install, you can find Iptraf RPM package installed in the CD, installation
We all know that ifconfig-a can list all the network cards, but how to interpret the gigabit NIC or the hundred gigabit NIC.
1. The judge is the gigabit Nic or the hundred gigabit NIC
Ethtool ETHX View the rate of support
The actual network card
1. Lock and unlock #inlcude int pthread_mutex_lock (pthread_mutex_t *mptr); int Pthread_mutex_trylock (pthread_mutex_t *nptr); int Pthread_mutex_unlock (pthread_mutex_t *mptr);
Mutual-exclusion locks are collaborative locks. This means that if
217 static define_per_cpu (struct runqueue, runqueues);One #define DEFINE_PER_CPU (type, name)__ATTRIBUTE__ ((__section__ (". Data.percpu")) __typeof__ (type) per_cpu__# #name13
First of all, there are in the Arch/i386/kernel/vmlinux.lds
* 'll
arm-linux Cross Compiler productionThis article introduces the use of Crosstool-ng tools to make Arm-linu cross compiler, about crosstool-ng not to speak more (can Baidu), the following to s5pv210 processor as an example of the production process.
I.
1. Basic knowledge of Linux
Linux version of I386/I686/X86-64/PCC, etc... The difference
The understanding of the Inode of Linux (the interview, once asked, is to find space, but still cannot create new directories and files, a big reason is that
tracking of several states of Linux PHYThis article turns from: http://www.latelee.org/programming-under-linux/linux-phy-state.html
The previous article sporadic analysis of PHY, originally wanted to complete, systematic analysis, found that the
1. Create a table of contents
syntax: mkdir-p ——— continuous creation of directories and subdirectories
Mkdir-p Test/test1/test2
2. View the contents of a text file
(1) Cat
Cat [file]-------Show all the contents of the file
cat-n
Sometimes you need to see how many files are in the folder, so you need to use the following instructions
$ls-L | Grep-c ' ^-'
What does a grep mean? We're man.
$man grep
You will see the following description:
Synopsis
grep [OPTIONS]
There are many folders under the Linux system root directory, and the basic functions of each folder are as follows:
Serial Number
Directory
function
1
/bin
Execute file storage directory, which commands
dubbo-admin Installation
Environment Vmware®workstation Pro CentOS7
Download Dubbo and pack me here with git download, git clone https://github.com/alibaba/dubbo.git. Up to today, the latest version of Dubbo is 2.5.4-snapshot. After the Dubbo
The Linux driver must first be loaded by the module_init (function_name) function and driven by the module_exit (function_name) function, where function_ Name is the initialization function and the function that clears the device.
To create a device,
The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching rows. This command is often used to parse a line of information, if it has the information we need, to display the
Sometimes, you need to count the length of time each user logs on. I took a lot of time when I first started this thing. Mainly I used the server too many users, there are more than 1000 people, write a good program to execute nearly half an hour
A. What is LVM?
Logical Volume Manager, which combines multiple partitions, hard disks, and even raid into a single storage device, and can expand or shrink space. The LVM consists of three layers: the bottom PV, the middle VG, the upper LV, as
Ii. Related Concepts
1, Platform equipment:In Linux, independent peripheral units (such as I2C, IIS, RTC, watchdog, etc.) integrated into the SOC system are treated as platform devices. In Linux, a platform_device structure is used to describe a
I. Introduction and use of lsof
1.lsof
The lsof command tool allows you to see which handles are occupied by a process. You can also see which processes are used by a file.
2.lsof Common usage
(A) Find files opened by the application
The Lsof-p PID
problem arises:
Switching between processes requires a large, long time to find a better way to appear in threads.
The difference between a new process and a new thread: The new process has its own PID, variable, time independent, and execution
Today to share the difference between single quotation marks, double quotes, and anti-quotes in Linux, single quotation marks are the function of the contents of the single quotation marks will be the output (what you see), the double quotation
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