Linux Learning notes Basic bash shell commands

Linux File SystemLinux speaking files are stored in a single directory structure (virtual directory), and the virtual directory contains the file paths of all the storage devices installed on the PC.The more complex part of the Linux virtual

Network card Traffic Monitoring script (Shell)

#!/bin/bash# Traffic monitor# Author:xiao guaishouget_traffic_info () {recv=`Cat/proc/net/dev |awk-F'[: ]+' '/' "$dev"'/{print}'' Sent=`Cat/proc/net/dev |awk-F'[: ]+' '/' "$dev"'/{print $11}''}get_traffic_rate () { in=`Echo$[($RECV-$old _recv)/1024x7

Shell Script--grep Tool

grep toolThe shell command line is convenient and the tools it supports are inseparable, and the grep tool is a search artifact that can search all the information in all the files in the entire Linux system.The flexible use of grep is inseparable

Shell Terminal shortcut key summary (MAC)

In summary, the development system is OS X 10.11.4, the tool is ITerm2, and the practice is currently based solely on that environment.1. Most commonly usedCmd+c: CopyCmd+v: PastingTAB: ComplementCTRL + A: Move to command start positionCtrl+e: Move

Shell script Application (iv)

The return status value of the shell environment based on the command execution ($?). ) to determine if the execution succeeds, when the return value of 0 indicates success, otherwise (not 0 value) indicates a failure or an exception. Using a

The method of string interception under shell

One of the first few instances of the Linux shell intercepting strings, the first 8 bits are intercepted:The method is as follows: A=1234STERRERWRWRETW below1.expr substr "$a" 1 8           650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8

Make your own Linux-->shell

before starting the code, let's take a look at what a shell is. Shell English is also called the shell layer. In a computer, "system" software that "provides user interface", usually refers to the command parser of the command line interface. In

Shell Command Learning

The Find command is used primarily for file or directory lookups.-print indicates that a matching file name is printed-print0 indicates that each matching file name is printed using the ' \ \ ' delimiter-name: Find by file name-iname Ignore letter

Steps and shell scripts for installing Jdk1.8 and resin4.0.45 in CentOS7.2

1. Installation of JavaJdkHttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html1.1, Installation jdk-1.8[Email protected] ~]# lsanaconda-ks.cfg Desktop jdk-8u77-linux-x64.rpm [[email protected] ~]# RPM-IVH

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

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

Shell programming for while until loops

The shell's for loop format is as follows:For variable in listDo...DoneA list is a series of values that each value is separated by a space, once per loop, and the next value in the list is assigned to the variableThe in list is optional, if you do

Various judgment grammars in the shell

Shell judgment#按照文件类型进行判断-B To determine if the file exists and whether it is a fast device file (The block device file is true)-C Determines whether the file exists and whether it is a character device file (the character device file is true)-D to

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

8 Shell Command's find

The Find command, which is used as often as a CD. It is only possible that the majority of the time it takes only one or two parameters to be used. Or, barely enough. But when we take the initiative to look at the manual of Find, we will find that

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

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

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

Hill Sort (Shell)

The essence of the hill sort is the grouping insert sort, which is also known as narrowing the incremental sort.The basic idea of this method is that the whole sequence of elements is divided into several sub-sequences (consisting of elements

Java-jar Shell Start, stop

Enable VI start.sh# !/bin/sh # ################################################################## # Powered by Ironfo # ################################################################## # Note: You must have & let it execute in the background,

Total Pages: 541 1 .... 353 354 355 356 357 .... 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.