Collect the information inside the/var/log/secure, if an IP link number more than a certain number of times, then the IP record to/etc/hosts.deny inside#!/bin/bash#denyhosts SHELL script# --6- -Cat/var/log/secure|awk '/failed/{print $
Command: Su[options] Username-,-l,--login:make Shell as login shell, which makes a shell a login shell, such as executing Su-pzhang, indicates that the user wants to change the identity to become Pzhang, and uses the Pzhang user's environment
Login generated verification code when using the Monaco.ttf font, without the installation of fonts, will error: can ' t open resourceThe way Linux installs fonts is actually very simple, which is to callFc-cache-f-Vcommand, in fact we can just call
(1) Creation and deletion of users under Linuxcommand to create a user: Useradd jfeduAfter this command is executed, it is created for the user: Create a home directory for users/home/jfedu Create a group with the same name as the userTo delete a
Recently looking at the basic knowledge of Linux programming, intends to do some of the more interesting knowledge to do some summary memo, this article revolves around Fpic, learning reference at the end of the text. In a Linux system, a
I. Viewing file time and related commands1. Stat View file time[Email protected] ~]# stat install.log File: "Install.log" size:33386 blocks:80 IO block:4096 General file device:fd00h/64768d inode:7692962 links:1access: (0644/-rw-r-
Problem:1, how to request the logical address?2, how do I find the base field of the segment descriptor?Logical address: Consists of a 16-bit segment selector and a 32-bit offset, which does not mean that the address is the segment selector offset 32
One, Oracle VirtualBox installation Linux7.0 fullscreen settings1. Click the menu bar device –> Assign the optical drive –> Select a virtual disc, locate the Vboxguestadditions.iso in the VirtualBox installation directory, and load the image.2.
Some of this information is from:Http://www.cnblogs.com/xiaocen/p/3717993.htmlDownload the Code First:https://www.kernel.org/pub/linux/kernel/v4.x/Unzip to/USR/SRC (it seems that the compilation kernel must be here)Enter/USR/SRCPerform:LN-SV linux-3.
Linux Shutdown Firewall command1) Permanent, no recovery after rebootOpen: Chkconfig iptables onOFF: Chkconfig iptables off2) immediate effect, recovery after restartOpen: Service iptables startClose: Service iptables stopIt should be stated that
1 service start and stopsuch as service Rsyslog restartSee if the service is running[[Email protected] ~]# service Rsyslog statusRSYSLOGD (PID 30843) is running ...2 view port occupancy based on process name[Email protected] ~]# Netstat-nap | grep
Common directivesLS display file or directory (list)-l list File details L (list)-a lists all files and directories under the current directory, including Hidden A (all)mkdir Creating a directory (make dir)-P Create directory, if no parent directory,
(1) VI is used in three wayscommand line mode text mode last line mode(2) command line mode can copy, delete, paste, insert, undo operationCopy command: yy | YG indicates the line where the cursor is copied Nyy (parameter n means copying a few lines)
Shell parses the command line process and eval command, shelleval
This article describes how to process a linux Command during execution? And the general sequence of these processes.1.1 shell parsing command line
The general procedure of shell
Date, sleep, and usleep commands, datesleepusleep1.1 date command
Date is used to obtain and set the Operating System Time, And hwclock is used to obtain the hardware time.
Date has an option "-d", which can be used to describe when to obtain the
Common linux commands,
View help:Man commandExit help: qDirectory and file operation commandsCommand to switch the directory:Switch the cd app to the app directoryCa... switch to the previous directoryCd/switch to the system root directoryCd ~
Yum preliminary understanding and use, yum preliminary understanding of use
Yum (Yellow dog Updater, Modified) is a character front-end Package Manager based on RPM package management. The RPM package can be automatically downloaded and installed
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