In Linux shell programming, the addition and subtraction of dates is often usedI used to use the expr function to calculate the problem.Actually, the date command itself provides the addition and subtraction of dates.Very convenient. For example:
First, what is LinuxLinux is an operating system, and the Android and iOS we use are Linux operating systems and UNIX-like operating systems respectively.Linux is also a server we often talk about. We look at the website, the game, the app behind
[[email protected] alidata]# Touch 24touch:cannot Touch ': Read-only file systemFirst, see if Mount has permission[[email protected] /]# mount/dev/sda3 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on
Topic:On a system in the 172.24.3.0/24 network, the local port of Access System1 5423 will be forwarded to 80This setting must be permanently validThe topic does not say TCP or UDP so two are addedMethod 1:firewall-cmd--permanent--add-rich-rule '
Code1#!/bin/Bash2 #程序功能描述:3 # Monitoring System The amount of process memory occupied by the selected service4 #作者: Lone boat Point5#版本:1.06#创建时间: .-Ten- A Geneva: -: A7path=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin8 Export
Recommend a Linux navigation station inside the development operation and maintenance automation security and so on technical data DaquanHttp://www.ailinux.netAll manual carefully input worthy of the recommended collectionThis article is from the
First check the system has no mail service, the general system is installed by default.Take CentOS for example:[Email protected]/]# Rpm-qa |grep mailmailx-12.4-8.el6_6.x86_64Installed there, we now modify the mail configuration file:[Email protected]
First, the signal is a simulation of the interrupt mechanism at the software level, in principle, a process receives a signal and the processor receives an interrupt request can be said to be the same. The signal is asynchronous, and a process does
Connect to Linux remotely using putty1. Download the Putty Toolkit at the following address:Https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html2. Open PUTTY.EXE after decompression, and enter your server address and account password asA.
1. Installation of virtual machines2. Virtual machine settingsNote:
If NAT mode is selected
The matching NIC is:Through this virtual network card and the local communication, can only communicate with the local computer, if the
Original source: http://www.cnblogs.com/fnlingnzb-learner/p/5831284.htmlI've been working with Linux lately, and I've had to buy a bird's-brother's book to look at, and it feels good. I think Linux is more troublesome than Windows is a lot of things
1. Only LVM disk partition supports dynamic expansion, and does not affect old data2, the expansion of special considerations, the new partition to be formatted to use the LVM expansion, otherwise added to the total capacity of the partition
IntroductionThe top command is a common performance analysis tool under Linux that shows the resource usage of individual processes in the system in real time, similar to the Task Manager for Windows.Top display system current process and other
View CPU information (model) # Cat/proc/cpuinfo | grep name | Cut-f2-d: | uniq-c 8 intel (R) Xeon (r) CPU e5410 @ 2.3 3ghz (see there are 8 logical CPUs, also know the CPU model) # Cat/proc/cpuinfo | grep Physical | uniq-c
Basic command:Create/Modify/delete user Useradd/usermod/userdelCreate/Modify/delete user groups Groupadd/groupmod/groupdelModify the owning user/owning user group Chown/chgrpModify Permissions chmodCreate a folder mkdirCreate a file TouchSwitch
Because of the recent need to learn python, in order to facilitate the debugging of the program, try the Pycharm under Windows to remotely connect to the Python environment under CentOS in the virtual machine. (I'm using SSH's remote connection here.
Shell -- cut usage,
Cut is a processing object for each row. This mechanism is the same as sed.
Cut accepts three positioning methods:
1) byte:-B
2) characters:-c
3) fields:-d
Eg: extract the 3, 4, 9 Bytes: cut-B 3-5, 9
Note: If you use the-B
Add a common user to The sudo list in Linux.Preface
Linux users (uid> = 500) do not have the permission to execute certain commands. to execute commands with higher permissions, there are two methods:
The first is to use the su-command to switch
Cent OS supports Chinese and centos
I bought the vps of Bandwagon. By default, terminal is in English. Sometimes it is not convenient to use Chinese characters, so I want to support Chinese characters.
The main steps are as follows:1. Install the
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