Use of the Find command under Linux

File Lookup#根据name查找find . -name excel2json.py#根据文件名后缀查找find . -name "*.py" -print#使用正则表达式查找find . -name ‘[A-Z,a-z,1-10]‘.py -print#排除某些文件find . -name "curl.py" -prune -o -name "*.py" -printDirectory Lookupfind . -path"./aa " -prune -o -name "*.txt"

Linux system directory structure

1)/bin: The most frequently used commands are stored.2)/boot: Stores some of the core files used when starting Linux, including some connection files and image files.3)/dev: This directory is a Linux external device, access to the device in Linux

Linux System Compression Command summary

01-.tar formatUnpacking: [*******]$ tar xvf Filename.tarPackage: [*******]$ tar cvf filename.tar DirName (Note: Tar is packaged, not compressed!) )02-.gz formatDecompression 1:[*******]$ Gunzip filename.gzDecompression 2:[*******]$ gzip-d

Linux topic Collation (ii)

1, how to filter out the known current directory in the Oldboy of all the first-level directory (does not contain subdirectories, that is, only a level of directory)Method 1:find./-type d-maxdepth 1Method 2:ls-fMethod 3:ls-l | grep ^dMethod 4:ls-f |

Linux kernel tuning

Kernel parameter Directorycd/proc/sys/net/ipv4/Kernel parameter modificationVim/etc/sysctl.confNet.ipv4.tcp_syn_retries = 1Net.ipv4.tcp_synack_retries = 1Net.ipv4.tcp_keepalive_time = 600Net.ipv4.tcp_keepalive_probes = 3NET.IPV4.TCP_KEEPALIVE_INTVL =

Monitoring a process under Linux

Application Scenarios:A process outage, such as the rsync service, occurs frequentlyLab Environment: CentOS7Experimental script:#!/bin/bashstatus=$ (Ps-aux | grep "Rsync--daemon" | grep-v "grep" | wc-l) if [$status-eq 0];thensystemctl Restart RS

Network environment configuration under Linux

Network environment configuration under LinuxYou must be a root user before you configure the network environment:root@localhost ~# su - root@localhost ~# su root 1 2 You can switch to the root user by using the above two

Linux Modify the NIC name

To modify the NIC name:Vi/etc/udev/rules.d/70-persistent-net.rulessubsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:c4:00:d0", attr{type}== "1", kernel== "eth*" , name= "Ens33"Note: The above attr{address}== "00:0c:29:c4:0

Linux disk-related

Mount File Systemmountmount [-t fstype] filesystem dir ##mount /dev/sdb /dataUninstalling the file systemumountumount /dev/sdbumount /dataShow All block deviceslsblk[email protected]:/var# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0

Linux password hack

experiment purpose: Hack linux CentOS7 passwordThe first step:When you start, start the interface and press "E"Step Two:After entering, find the place where the Linux16 begins, press "End" key to the last, enter Rd.break, press Ctrl+x to enterStep

Linux Common Command collation

first, storage-related 1. Flash mount/unload operation mount-t jffs2/dev/mtdblock5/mnt/# #挂载/dev/mtdblock5 to/mnt/directoryumount/mnt/# #卸载上述挂载的分区Mount-t Vfat/dev/msb1/usb # #挂载U盘     2, Flash storage information DisplayDF # #显示磁盘的使用情况4, Memory

Linux jdk environment variable configuration tutorial, linuxjdk environment variable

Linux jdk environment variable configuration tutorial, linuxjdk environment variable Configuration value jdk environment variable First download a linux jdk 1.upload the jdk-8u144-linux-x64.tar.gz file to the home directory. Tar xf

How to install and uninstall mysql in linux

How to install and uninstall mysql in linuxInstall mysql 1. yum list | grep mysql // view the downloadable mysql database version provided on yum 2. yum install-y mysql-server mysql-devel // yum install mysql 3. service mysqld start // start mysql 4.

Linux single system installation tutorial, Linux system installation tutorial

Linux single system installation tutorial, Linux system installation tutorial Linux single system installation tutorial Prerequisites: 1) Linux system: CentOS-7-x86_64-DVD-1708.iso 2) one computer, 64-bit 3) Use rufus to create a boot disk.

Linux-based wi-fi connection

Linux-based wi-fi connection I checked on the Internet and found several related command tools that can be connected. Here, I will make a summary to facilitate future use. For wired NICs, you can use the ifconfig command to plug and launch the

Why does Linux crond not run? How can this problem be solved ?, Linuxcrond

Why does Linux crond not run? How can this problem be solved ?, Linuxcrond In order to regularly monitor the CPU, memory, and load usage of the Linux system, write a Linux Shell script and send an email notification periodically when it reaches a

CentOS7: google browser installation, centos7google

CentOS7: google browser installation, centos7google Today, I am free to try Google-chrome installation that has been successfully installed. Add a few Reference Links: One is to change the yum configuration file and directly use yum install. He did

Installation of rz/sz commands in Linux, rzsz

Installation of rz/sz commands in Linux, rzszInstallation of rz/sz commands in Linux 1) Compile and install the root account login, in turn to execute the following command: cd/tmpwget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gztar zxvf

Notes for copying and starting tomcat on Linux: linuxtomcat

Notes for copying and starting tomcat on Linux: linuxtomcat When you re-deploy a tomcat on Linux, you can copy one of the previous tomcat files and change several ports. Many people think this way. Then, at startup, you may find that the startup

In CentOS7 Linux, Tomcat is installed. How can I start multiple service instances in the same software package ?, Centos7tomcat

In CentOS7 Linux, Tomcat is installed. How can I start multiple service instances in the same software package ?, Centos7tomcatIn CentOS 7 Linux, Tomcat is installed. How can I start multiple service instances in the same software package? This

Total Pages: 5467 1 .... 3733 3734 3735 3736 3737 .... 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.