grep lookup contains specific characters in the specified directory
Instance
Search all files in the/var/www/html directory, with files containing phpinfo characters, and show travel numbers
Grep-rn phpinfo/var/www/html/*
Note:-R is recursive
You can use the command to check the 10 processes with the most memory
View the most CPU-intensive processes
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|head
or top (then press m, note that this is uppercase)
To view the most memory-intensive
The company moved, several server IP also changed, so the server OTA application of a lot of files related to IP replaced by the current IP, this time you can use the SED command. To bulk find replacements in a directory:
Sed is an online editor
have been using this because sometimes the U.S. VPS wget command to download domestic files when the speed is too slow, so the use of Axel is still a good choice.1.CentOS installation of Axel
32-bit CentOS execute the following command
Wget-c http:
Rz,sz is a command-line tool for Linux/unix Zmodem file transfer with Windows.
The advantage is that there is no need to open a sftp tool to upload the download file.
SZ: Sends the selected file (send) to the local machine
RZ: Running this
Problem:
I have a keesail user. I want to have it read and write the local folder permissions should be switched to the root account what commands to give Keesail permissions?
For example, a directory dir, your username Hengyang, you can give
The day I open the computer, I found that the group said bash the loophole, immediately searched the next, found incredibly more serious than the heart of the loopholes, well, it seems that there are things to do today.
System: centos5.x
1. Detect
When you compress a directory, sometimes you want to exclude a directory, as shown in the following example:For example, the file directory contains the following files and directories
The code is as follows
Copy Code
Often in the operation of Linux, occasionally break the network or in the Intelligent multi-line environment to operate the server, often be disconnected, but the user login process is in, and did not exit.
Simple way to implement a logged in user
The following error occurred while testing the Mydumper compression feature (-C) yesterday:
The code is as follows
Copy Code
[Root@liufofu backup]# mydumper-h localhost-u root-p tiger-c-O./liufofu/-B
The Systemctl command was discovered recently while playing Ubuntu and openSUSE, and later found in the demo Centos7, Systemctl is a tool under SYSTEMD. The order has been in existence for a long time. This command is used to replace the service and
Jdk:Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlCreate a new software directory in the root directoryUpload the downloaded JDK to the software folder.(using WINSCP makes it easy to drag and drop files under
Install the basic Environment1.ubuntu Downloads: http://releases.ubuntu.com/14.04.4/2. Installing VirtualBoxDownload directly from the software manager3. Install UbuntuNote: Disk space is best to open up a large point, otherwise it is not enough to
Linux system Boot Process detailedstart the first step --load the BIOSWhen you turn on the computer, the computer loads the BIOS information first, and the BIOS information is so important that the computer must find it at the very beginning. This
FHB: The hierarchical standard of file system, the filesystem of Linux operating system is the standard, similar to the file system under the C disk under WindowsFile system and partition relationships:1, the file system is a logical partition,
NtsysvTurn off service on bootChkconfig--list View all services and 7 operating levelsChkconfig--level 3 SendMail on/off 3 level turn on or offChkconfig SendMail on/off 2 3 4 5 levels are turned on or off 0 1 6 levels that were supposed to be
Linux system start-up processStart the first step-load the BIOSWhen you turn on the computer, the computer loads the BIOS information first, and the BIOS information is so important that the computer must find it at the very beginning.Start the
Linux file System: Tree file system, root start, strictly case-sensitiveCtrl+alt+t Open TerminalCtrl+alt+f1 from graphical interface to terminalCtrl+alt+f7 back to the graphical interfacePWD Displays the current working directoryThe CD changes the
One-click removal of non-80 ports of the domain name, remove the port number behind the domain name Quick Solution, domain name 80
The remove port function is mainly used to remove the port after the Domain Name When Apache and IIS and other
Install and configure MySQL in a Linux Virtual Machine
1. Download mysql5.7
Http://mirrors.sohu.com/mysql/MySQL-5.7/
Linux download:
Enter the command: wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz
2.
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