Brief introduction:
Iptables is a user-state module, which is mainly configured for rules;
NetFilter is the kernel module, which is responsible for filtering actions.
Instance:
Iptables–f
Iptables–a input–i
Method 1:Synchronizing with a known time serverCopy CodeThe code is as follows:ntpdate time.nist.govwhere time.nist.gov is a time server.Delete local time and set time zone to ShanghaiCopy CodeThe code is as follows:rm-rf/etc/localtime
Top real-time dynamic display system status. (CPU, memory, swap, Task)1. Top summarizes CPU, memory, swap, task information, and list to display the CPU, memory, swap, task information of the process dimension2. Top-h-P PID summarizes CPU, memory,
Common:GREP-NR "keyword" searches for all files in the current directory that match the keywordGrep-nr "keywords" *php search php files for all matching keywords in the current directoryFind-name ' *.php ' |xargs grep ' hello! ' Search all matching
Linux shortcut launches Tomcat1. Script Path/etc/init.d/tomcatFirst execution: Vi/etc/init.d/tomcatPress A to edit, the following content according to your own situation (mainly to modify the/usr/local/tomcat6/bin/)After modifying the copy to the
The difference between ~ and/in Linux systemsThe problem is:Rookie in the process of learning to create a directory (folder), but do not know the location of this directory, do not know that the directory has those files.Cause Analysis:After testing
Multiple NICs tied together as a network adapter for load balancing and bandwidth enhancement linux dual NIC binding an IP address, the real work is to use two network card virtual as a piece, using the same IP address, is we can get better faster
File transfer between different systems *******# # 1 # # File archiveFile archiving is to turn multiple files into an archive fileSetting method: Tar parameterc//creation, createF//Specify file Archive file namet//Show archived file contents, ListR//
Vim/etc/ssh/sshd_config # #编辑允许登陆的配置文件Systemctl Rstart sshd # #重起sshd服务Permitrootlogin No # #不允许root用户被远程登陆Allowusers Linux Westos # #允许那个用户可以被访问Compressed command compression parameter file name to be compressed after compression (path)TAR-CF
LVM is the short name for logical management, which is an abstraction layer built on top of physical storage devices, allowing you to generate logical storage volumes, providing greater flexibility than managing direct use of physical storage. (You
Compiler version used for compiling the version of the kernel: ARM-LINUX-GCC 3.4.11. Get linux-2.6.32.22. Unzip the kernel3. Switch to the kernel directory that you just unzipped:CD linux-2.6.32.24. Modify MakefileModify the following:Before
Linux Disk partitioning modeMode one: MBR1) No more than four primary partitions2) Maximum single partition capacity 2TBMode two: GPT1) The number of primary partitions is "almost" unlimited (cause: Up to 128 primary partitions can be supported in a
Seq-print a sequence of numbers[[email protected] ~]# man seqThere are three main parameters-F: Used to format the output-S: Used to specify the separator symbol, the default is carriage return-W: output of the same width sequence, the insufficient
We know that Linux is just a kernel, now the Linux operating system is the bottom of the kernel, including Android phones, so the Linux operating system is actually the Linux kernel and application software to do a package, we call it Linux
vi /etc/pam.d/system-authAs Root.
Look for the following and the lines:password requisite pam_cracklib.so try_first_pass retry=3password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
Comment out the first of
In the last six months, I have been reading a book called "Linux should learn" Linux textbooks, really let me progress quickly, but also slowly let the Linux system into my knowledge, so before learning we compare the Windows and Linux different,
Linux Cmd Tool series-history & search command history, toolhistoryHistory cmd is for list Bash's log of the historical cmd you typed
1.ListLast n commands
history n
2. ExecuteCmd No. n
!n
3. ExecuteLast cmd
!!
Or
!-1
4. Execute commandN times
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