First, let's talk about my environment.Release: Ubuntu 12.04Kernel version: 3.2.0Desktop Environment: GNOMEMachines are x86 32-bit architecture drops
After downloading the Deb package of WPS, you can't wait to go to the command line interface to
Recently, I encountered a headache. the Linux File Server I maintained suddenly collapsed for no reason. Many files in the root file system disappear. All data is stored on a raid device, but mdadm. conf in/etc/does not exist. UUID is lost.
This
4-2-1 in the Unix/Linux World
In the Unix/Linux World, 4 represents readable (R), 2 represents writable (w), and 1 represents executable (X)
If you have 7 = 4 + 2 + 1 permissions, this means that this person can have full control over the file.
1. VI '!! '
For example, first find a jar package and then run VI '!! 'To open and edit the file content. Very convenient.
2. Echo "1/2" | BC-l
Directly calculates the result with a decimal point. Can be extracted into a function
3. Remove
1. to create a folder in a Windows system, you are advised to set the folder name to "share" (right-click "folder"> "properties"> "share"> select the two check boxes under "network share" and "security"> "OK, you can see that there is a hand holding
The procedure is as follows:
[Root @ localhost ~] # Cd/[Root @ localhost/] # lsBin Dev home lost + found MISC net proc sbin SRV tftpboot USRBoot etc lib media MNT opt root SELinux sys TMP VaR[Root @ localhost/] # cd/Media[Root @ localhost
In the process of device access, some manufacturers' sdks support compiling in Windows and Linux. Therefore, versions must be differentiated during the encoding process. For different platforms to use different interfaces, the following is my
Install FFMPEG in Linux1. Download FFMPEG. 2, unzip tar xvfj ffmpeg-0.11.1.tar.bz2 to obtain the directory after decompression is ffmpeg-0.11.1 3, configure www.2cto.com. /configure -- enable-shared -- prefix =/usr/local/FFMPEG where: --
During Linux installation, one step is to determine how hard disks are divided. If you are used to operating systems that place everything in the same partition, you may think this step seems a bit complicated. However, there are actually many
1. the Linux file system starts from;
In File Management of Linux operating systems, file or directory management in command line mode (in the console or terminal) involves the concept of path, this is the most basic foundation for Linux Command
I don't know what mounting is for Linux! Learning cannot be left alone. Although it is just half the road, the basics are also good. It's not too late to study now!
Mounts (usually a storage device) to an existing Directory. To access a file
Modified the net/sched/sch_generic.c file of Linux 2.6.37.6 kernel, and added the following to the file:+ # Include Static int pfifo_fast_enqueue (struct sk_buff * SKB, struct qdisc * qdisc ){+ Struct tcphdr * th = tcp_hdr (SKB );+ _ Be16 dport = th-
Oops information for Linux kernel debugging
Oops indicates "oh". When a kernel error occurs (for example, an Invalid Address is accessed), the output information becomes oops information. The following is an example to describe oops
Mounting and detaching Linux Devices
Before mounting the device, check the device number and type with sudo fdisk-L!
Device Names in Linux are usually in the/dev directory, and the names of these devices are all rule-based, such
The last time we talked about the flow output, we will go to neigh_resolve_output. Let's take a look at what the neigh_resolve_output (struct sk_buff * SKB) is capable of playing with the neighbor)
{Struct dst_entry * DST = skb_dst (SKB );Struct
My efforts over the past few days are not in vain. Now I will contribute my achievements. Of course, most of the Code is not written by me.
For v4l2 video collection, I have referred to the official v4l2 source code and H.264 encoding. I have used
As we all know, a user program can notify the kernel to execute the system call through the library function. Because it is executed in the kernel space, every step must be very careful, the system crashes at any time because of wrong
1. View Disks
DF-H
2. view the memory size.
Free
Free [-M | G] memory display by MB, GB
Vmstat
3. View CPU
CAT/proc/cpuinfo
Only check the number of CPUs grep "model name"/proc/cpuinfo | WC-l
4. view system memory
CAT/proc/meminfo
5. view the status
1. Check the Linux version: lsb_release-.
2. Get the current kernel name and other information: uname-
3. Check all hosts files under the folder and force Delete: Find./-name "*. MP3" | xargs Rm-RF
4. Search for the hostnames word in all common
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