23. Grep/egrep Regular Expression exercises:1) display lines in the/etc/passwd file that do not end with bash;For:# grep-v "bash$"/etc/passwd2) Locate the two-bit or three-bit integer in the result of the ifconfig command execution;For:# Ifconfig |
One: The Linux op korimasa the sed of the expressionAwk is an excellent text processing tool, one of the most powerful data processing engines available in Linux and UNIX environments.1. Options | parameters:-F FS or--field-separator FSSpecifies the
If there is a test1.txt format as shown:The contents of the Test2.txt are as follows:Now you need to search for the line containing the keyword Test2.txt and show the number of rowsYou can use the command:Cat Test1.txt | GREP-NF Test2.txtAfter
The grep command in a Linux system is a powerful text search tool that uses regular expressions to search for text and print matching lines. grep full name is global Regular ExprEssion Print, which represents the global regular expression version,
Linux CD commands can be said to be the most basic Linux command statements, used to switch directories, is the shell's built-in commands, to do other things, are built on the use of CD commands. Therefore, to learn the common Linux commands, the
---------- other genera Security contexts (Secure context)Any time a user operates a computer is nothing more than initiating a process, so the process is the agent of the user operating the computer, so when the process runs, it must be running as
two days ago compiled Linux RAR decompression software when said can not find/usr/local/linux path, in setting the path variable, suddenly want to see, path the most primitive variable value is how much .... (Save in environment variable file
1 Switch Directory CDCD app: Switch to App directoryCd.. : Switch to the previous level directoryCD/: Switch to the system root directory2 Listing file lists LSls[parameter] [path or file name]Ls:Ls-a: Show All Files or directories (including hidden
First step: Download the installation package http://download.csdn.net/download/chao8672/9963465Step two: Copy to Linux server and unzip-ZXVF zookeeper-3.3. 6. tar.gzStep three: Create DataDir and Datalogdir# mkdir DataDir#mkdir LogDirFourth step:
Three. Archive tool
Tar file Packaging
(1) TAR-CVF Shell.tar shell/ Package The Shell directory together with the files under it Shell.tarC: instruct tar to create an archive V: to display the execution of a command F: The file name
1. Software Installation1) Compile and installafter the root account is logged in, execute the following command in turn:wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gztar zxvf lrzsz-0.12.20.tar.gz && CD lrzsz-0.12.20./configure && make &&
If you have a hard drive, how do you use it for your Linux system?1. Install the hard drive on the server2. Partition the hard disk3. Format the partition4. Create a directory (mount point) on a Linux system5. Mount a formatted partition to a
Linux Common Command Daquan (very full!!!) )I've been working with Linux lately and it's been a good feeling. I think Linux is more troublesome than Windows is a lot of things to command to control, of course, this is also a lot of people like Linux
First, SYSTEMDSystem initialization program, the first process that the system starts, the PID is 1Diagram: SYSTEMD System initial Program650) this.width=650; "Src="
In Linux, the nature of multithreading is still the process, and it differs from the process:Process: Independent address space, with PCBThreads: There are also PCBs, but no separate address space (shared)Features of the thread:1, the thread is a
CentOSyum Replace the domestic source, yum download rpm package and source code package installation
I. yum replacement of domestic sources
1. First enter the Directory: cd/etc/yum. repos. d/
2. Delete the corresponding repo file or rename it: rm-f
Basic CentOS command: sarCommon sar command formats
Sar [options] [-A] [-o file] t [n]
Where:
T indicates the sampling interval, and n indicates the number of samples. The default value is 1;
-O file: stores the command results in binary format.
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