Linux-practice (23-24)

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 |

The Linux op Korimasa is an expression of awk

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

Linux: Search for keywords from a file and display the number of rows (Cat,grep function)

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

Linux Package Management

01. RPM Package Naming rules = [package name]-[version number]-[number of software releases]. [Suitable for Linux platforms]. [Suitable for software platform]. [RPM Package Extension]Example: httpd-2.2.15-15.e16.centos.1.i686.rpm (package full

Learn the grep and WC commands of the Linux command every day.

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,

Learn a Linux command every DAY--DAY1:CD commands

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

Linux User profiles and permissions

---------- 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

Ubuntu Linux environment variable path setting

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

Linux basic Commands

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

Install Zookeeper on "Zookeeper" Linux (single node)

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:

Linux BASIC Commands 2

bz2

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

Installation Rz/sz commands and instructions for use in Linux systems

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 &&

Linux-file permissions

One, the view of the file propertiesls-l filename-|rw-r--r--. | 1| Root|   Root| 46 | OCT 1 05:03 |filename---------------------------------------------------------1 2 3 4 5 6 7 81."-": File type-# #普通文件D # #目录C # #字符设备S # #套接字P # #管道B # #快设备L # #连接2

Linux basic commands

One, view directory and file commands CD Change Directory (1) Cd/usr/bin(2) Cd. (.: current directory,...: top-level directory )(3) CD/(4) Cd ~ ( user home directory )2.ls Listing Directory contentsContents: Blue, plain file: Black,

Linux Partition format mount mount

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!!!) )

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

Linux--system the command service status

First, SYSTEMDSystem initialization program, the first process that the system starts, the PID is 1Diagram: SYSTEMD System initial Program650) this.width=650; "Src="

Linux multithreading implementation and thread synchronization function analysis

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

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: sar

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.

Total Pages: 5467 1 .... 1690 1691 1692 1693 1694 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.