Finally figured out a problem. Linux creates timed tasks and executes SQL on a timed basis, which is divided into two case.CASE1 SQL statements are small, so write SQL statements directly in the shell script. As follows:[Email protected]
Locate all the files in the root directory that begin with test and pass the lookup results as parameters to the RM-RF command for deletion:1, Find/-name "test*" |xargs RM-RF2, Find/-name "test*"-exec rm-rf {} \;3, RM-RF $ (Find/-name "test")If you
IntroductionOne of the most commonly used Linux basic commands in find work is to find the files or directories we want by using parameters such as type, size, name, modification time, access time, change time, permissions, and so on. Find lookup
ObjectiveThis article mainly summarizes the basic operation of Linux and some simple concepts ~ If the unfamiliar classmate can play the next Linux (or to buy a server to play "student version is not very expensive"), for developers, can use Linux
FindFind/Folder Search nameReading textCat file nameCreate new files and foldersmkdir folder name touch file name (with suffix)Delete files and foldersRM-RF folder name rm-f file name (with suffix)Modify and save textVI file name// Enter edit
umask 显示或设置权限掩码Syntax format: umask "option" "Mode" umask [options] [mode]Note: The Umask command, followed by options and patterns, must have at least one space between each elementParameter options:
parameter Options
A: If the Linux root partition usage reaches 100%, it will cause the following behavior: root cannot log on system does not start properly Second: Find large files within the root partition by command 1.du-sh/* 2>/dev/null | sort-hr | head-3 2. If
Enter "Mount/dev/sr0/mnt" to mount the disc,Then enter "rpm-ivh/mnt/packages/bind-9.7.3-8.p3.el6.i686.rpm" To install the DNS service:After "vi/etc/named.conf" to view the global configuration file,Turn on the 53 port and match the IP address of the
1. In Linux we can use the LL or LS–L command to display the properties of a file and the users and groups to which the file belongs2. "D" represents the file in Linux as a directory file, and the first character in Linux means that the file is a
due to the use There are so many teams and individuals in Linux to develop the product, imagine that if everyone is using their own ideas to configure the directory of file placement, then management will be very disturbing. In order to control the
W who lastlog command example w view current logged in user and current operation[[email protected] ~]# w 22:52:39 up 133 days, 16:47, 8 users, load average: 0.77, 0.31, 0.32USER TTY FROM [email protected] IDLE JCPU
OverviewThe Xargs command is a filter that passes parameters to other commands, and is also a tool for combining multiple commands.It specializes in translating standard input data into command-line arguments, Xargs can process pipelines or stdin
DHCP (Dynamic Host Configuration Protocol) is commonly used in large local network environment, the main role is centralized management, assigning IP address, so that the host in the network environment to obtain the dynamic IP address, gateway
The concept of linksin Linux systems, links can be divided into two types: one called hard link, and the other is called soft link or symbolic link (symbolic link ). With the default without parameters, the link created by the Execute ln command is
13.4 MySQL User managementMySQL Create user and authorizegrant all on *.* to ‘user1‘ identified by ‘passwd‘;grant SELECT,UPDATE,INSERT on db1.* to ‘user2‘@‘192.168.133.1‘ identified by ‘passwd‘;grant all on db1.* to ‘user3‘@‘%‘ identified by ‘passwd‘
Since it is necessary to implement the boot Autorun script, it is related to the Linux boot-up service principle; When Linux is turned on, a step is taken to read the/etc/inittab configuration file, select the system runlevel, then initialize 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