[Linux] Linux Shell Find Files

#!/bin/bash# Find all files larger than 1MB in the current directory, write the file name to a text file, Count # # Find command, Parameters: path address, command arguments,-size n (find files of length N)-type F ( Find a type of file, F normal

Shell command to see the number of files under a folder

shell command to see the number of files under a folder2010-06-25 17:05:15| Category: Shell | Font size Subscription 1. View the number of files under a folder:Ls-l |grep "^-" |wc-l or find/company-type f | Wc-l2. Look at the number of files in a

Shell awk sed Combat

Combat one: File a006 take out the numbers insideTl_fmt_chg_shm_key=7100;export Tl_fmt_chg_shm_keyTl_msq_shm_key=7200;export Tl_msq_shm_keyTl_txn_srv_shm_key=7300;export Tl_txn_srv_shm_keySed methodSed ' s/\ (. *\) =\ (. *\); \ (. *\)/\2/' a006710072

Linux shell command

Lists the user and password expiration period. Chage-l username650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7D/58/wKioL1bmf6qzyGFrAAAWpNvEXpQ074.png "title=" Username.png "alt=" Wkiol1bmf6qzygfraaawpnvexpq074.png "/>Last password

Unix/linux System Management Technical Manual study notes--shell

Date Created: 2016/02/29Update on: 2016/02/29 Shell variables cannot be left blank on both sides of the equals sign, otherwise the shell will mistake the variable name for the command name Variables enclosed in double quotes can be replaced

Shell Operations for HBase

1. Enter the command lineBin/hbase Shell2. Enter Help to view various command groups.Commands are grouped, and you can perform the commands that help ' general ' view the general group.3. Common commands--What tables are displayedList--displaying

Shell Global and local variables

/******************************************************************** * Shell Global and local variables * declaration: * To So far, when writing shell scripts, often by the shell function in the variable * scope confused, so today deliberately

Linux OPS Learning shell script monitoring Nginx Service

Rookie learn shell script, hands practiced hand simple small experiment, use shell script to determine if Nginx is normal operation, if not run the Nginx service start up.First, based on process judgment1, get the nginx process to determine whether

Comparison of Shell variables

Two comparison of parameters[Email protected] shell]# VI test.sh[email protected] shell]# cat test.sh#!/bin/bashif [$1-ge];Then ECHO-E "\033[41;37m \033[0m "Elseecho "Start and End time is: ' Date-d" $ days ago "+%y%m%d"--' date-d ' day Ago

Tomcat's shell script---show the process number

#!/bin/bash## Chkconfig:-95 15# description:tomcat Start/stop/status Script#Location of Java_home (bin files)Export java_home=/usr/local/jdk1.7.0_75#Add Java binary files to PATHExport path= $JAVA _home/bin: $PATH#CATALINA_HOME is the location of

Shell Programming-Conditional judgment

There are 6 main types of conditional judgments:[Email protected] test]# Ls-ltotal 8drwxr-xr-x 2 root root 4096 Jan 19:28 shell-rw-r--r--1 root root 4 Jan 17 19 : Test.sh[[email protected] test]# [-D test.sh] && echo "Yes" | | echo "No" no[[email

Shell Programming Four Musketeers practice--sed

Shell Programming Four musketeers:Sed awk grep findSed can replace, delete, add, pick, and select data rows for specific tasks1.sed If you do not add any parameters, you will not be able to modify the contents of the file. The plus-i parameter is

Shell---Practice3

Requirements:1. Create a directory/tmp/scripts2. Switch the working directory to this directory3. Copy the/ETC/PAM.D directory to the current directory and rename it to test4. Change the current directory's test and the owner of the files and

Function of shell script programming

The function is actually to give a code a name, each time you use this code can directly use the function name to invoke it.First, create a functionThere are two kinds of formats for creating functions:Format 1:function function name {function

Shell programming-instance output system Information

Output System Information#!/bin/bashif [$#-eq 0];then echo "---------------------------------------------------------------------------" # OS type echo "OS Type: $ (uname-o)" # OS Release Version and Name echo " OS Release Version and Name: $

Comprehensive sentence shell hack

Before I made a sentence in the Forum Hack tool.Therefore, the decision is based on the change, in line with the use of some people.The previous version only supports https/aspx, this time after the improvement, it is also the last

Shell determines if the file has changed

Java suspended animation, but the process is still in, you can determine whether the log file changes over time to determine whether Java suspended animationThe shell script is as follows:#!/bin/bash# #通过比较五分钟前后, log file MD5 value is the same, to

Linux Shell Learning

Shell Features:History is saved in ~/.bash_hostory and retains 1000 records: defined inEcho $HISTSIZE!: Previous Command!$: Last parameter of previous command! 950: No. 950 order!c: The most recent command in history that starts with CTAB: Command

Operation of shell script programming

First, mathematical operations 1. Expr commandThis command can perform mathematical operations on the command line.650) this.width=650; "title=" 1451372345836139.jpg "alt=" 8.jpg "src=" http://www.178linux.com/ueditor/php/upload/ Image/20151229/1451

JAVA commonscollections WebLogic Write shell of the deserialization vulnerability

Refer to the content of many posts in the cloud Zone, organized the nextWeblogic1. Write the shell to the console images directory and write

Total Pages: 541 1 .... 383 384 385 386 387 .... 541 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.