The following example listens to the kernel's HotPlug event, the source code is as follows:
Copy Code code as follows:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
SSH is a common way to log on to the Linux server, but for security reasons, sometimes we need to do some special SSH processing, this article records the author has done some changes for everyone's reference.
First, modify the SSH port
SSH
Linux Xmodmap Modify keyboard mappings Caps_lock and super_l swaps
Change the awesome window manager to go. Because the unity of Ubuntu is still not very stable. Occasionally stuck for half a day, can not stand decisive will once awesome. It's
The GFS file system is actually a log file system that is often used as multiple computers to share the same storage device. Because GFS is a log file system, it benefits from the log file system if applied to a single computer, which is exactly
Linux Introduction:
The idea for the first invention to design the Linux operating system was a young man from Finland, Linus B. Torvalds, who was familiar with the Minix system. Start Linus B. Torvalds did not release the binaries for the new
Function Description: Compare two files that have been ordered.
Syntax: Comm [ -123][--help][--version][1th] [2nd file]
Supplemental Note: This directive will compare the differences of two sorted files in one column. The results are displayed, and
Q:
1 how to make RPM automatic Linux FTP upgrade? How to make a homemade rpm package?
2 How to turn off the Bash Directory tab beep on the console?
3 Linux Bulletin has logo for Linux, but how to compile on Redhat 6.0?
4 Does the Warrior have a
The trick is to write to the novice, the veteran is afraid to scoff, and I am not a veteran, so it seems that there is something wrong. But then again, even the novice may not be able to give the novice to introduce some of their own experience. As
Security experts are urging users of Linux servers and workstations to take immediate steps to fix two bugs found in the Linux kernel. These flaws can affect all current versions of Linux, and may also lead to hackers controlling Linux systems.These
Objective
In the Linux kernel, container_of functions are used very widely, such as Linux kernel lists list_head , work Queues work_struct .
In the Linux kernel, the well-known macro container_of() , in fact, its syntax is very simple, but a few
NetFilter provides an abstract, general-purpose framework that defines the implementation of a child function that is the packet filtering subsystem. The NetFilter framework consists of the following five parts:
1. Define a hook function for each
However, system administrators often fail to get information and make corrections in a timely manner, which gives hackers an opportunity to do so. More security issues are caused by improper configuration than with the vulnerabilities of these
CAT/ETC/PASSWD View Linux Users
Cat/etc/shadow View user password requires root permission
Cat/etc/sysconfig/network-scripts/ifcfg-ethn N represents the network card number to view the IP information of the network card
Ifconfig View native IP
To enable the ES6 (harmony) version in Nodejs:
Let's go
Linux EnabledSource: http://h3manth.com/new/blog/2013/es6-on-nodejs/
Node version:v0.11.6
First look at the version of harm;):
$ node--v8-options | grep harm--harmony_typeof (Enable
chmod Change file Permission command
The most commonly used basic command chmod
chmod 777 Directory Name (path name)
The 7,773-digit number represents user, group, others permissions, readable (r), writable (W), executable (x) permissions are
This script is found in the LNMP forum, it feels very good ~ ~
The script is as follows:
#!/bin/bash #function: Cut nginx log files for Lnmp v0.5 and v0.6 #author: http://lnmp.or G #设置你的日志存放的目录 log_files_path= "/home/wwwlogs/" #日志以年/month
It is well known that almost the entire internet is running on Linux, from network protocols, to servers, to the vast majority of websites you normally visit, to see its shadow. The Linux kernel is one of the most complex and popular open source
In the Linux environment, the Nginx load balancing is configured, because the cache mechanism may not be configured successfully in the configuration file nginx.conf of the virtual host, resulting in the page not refreshing and still displaying the
Sometimes we need Linux to load certain scripts or system services automatically when the system is powered on.
This is done mainly in three different ways:
ln-s Establish a soft link for the/etc/init.d/service in the/ETC/RC.D/RC*.D directory (*
1.Virtual MemoryVm.swappiness=1 # A percentage of how likely the VM subsystem are to use swap spaceVm.dirty_background_ratio=5 # The value is a percentage of the total amount of system memoryVM.DIRTY_RATIO=60~80 # A percentage of total system
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