Overview of Shell and bash

Shell is an interactive command interpreter. Shell is independent of the operating system. This design allows you to flexibly choose the appropriate shell. Shell You can type a command in the command line,After being explained by shell, it is

Some common shell commands

It is for entertainment only and is not responsible for the result of misoperations. 1. Remote copyRoot@192.168.1.38:/f/u/C/k.txt.Root@192.168.1.38 SCP-r-p1234:/beauty. 2. Force Overwrite\ CP-r/data/data1 3. synchronous copy of

Chmod of shell commands

Root @ BT :~ /Test # chmod -- helpusage: chmod [Option]... mode [, mode]... file... or: chmod [Option]... octal-mode file... or: chmod [Option]... -- reference = rfile file... change the mode of each file to mode. -C, -- changes like verbose but

Shell if statement Parameters

◆ Parameter description-B. returns true if the file exists and is a block file.-C: returns true if the file exists and is a character file.-D. If pathname exists and is a directory, true is returned.-E: returns true if the file or directory

Learning Linux (2): Understanding shell and some commands

Shell: Shell Baidu Encyclopedia: Baidu. It receives user commands and calls corresponding applications. It is also a programming language. As a command language, it interactively interprets and executes user-entered commands or automatically

Insert sorting, Bubble sorting, select sorting, shell sorting, quick sorting, Merge Sorting, and heap sorting

Various sorting implemented by the Java language, including insertion sorting, Bubble sorting, selection sorting, shell sorting, quick sorting, Merge Sorting, heap sorting, and sortutil. Insert sorting: Package org. rut. util. algorithm.

Shell checks the legality of IP addresses and the legality of network masks.

Sometimes we need to check the correctness of IP input and the correctness of the network mask, written in shell script: # Verify IP address correctness check_ip_format () {echo $1 | grep "^ [0-9] \ {1, 3 \}\. [0-9] \ {1, 3 \}\. [0-9] \ {1, 3 \}\. [

Shell: Monitoring script

Introduction: for some programs that need to run for a long time (such as server programs), it is necessary to write a monitoring program to enable automatic restart upon unexpected exit. This function can be implemented through a simple shell

Simple shell sorting analysis

First, let's talk about the basic idea of shell sorting: First take an integer D1 less than N as the first increment, and divide all the records of the file into D1 groups. All records whose distance is a multiple of DL are placed in the same group.

Shell basics 5: Input and Output (echo, read, Cat, pipeline, Tee, redirection, etc)

Shell basics 5: Input and Output (echo, read, Cat, pipeline, Tee, redirection, etc) All the environments below are tested in RedHat Linux9In Linux, to make the Escape Character take effect, you need to add the parameter-eStart with the echo

ADB :) ADB shell AM

You can use the am command to start an existing app in the system in the command line mode. The ADB shell enters the command line. Press enter to view the help information about AM. The meaning of each parameter is not described here. Just give a

Summary of common shell script commands for later use.

#!/bin/sh#for exm to test# ./check.sh 12 36 25 12 453 1 2 3 RETVAL=0SRRVER_START=1SRRVER_STOP=2DNS_STATUS=1dnsCheck(){ while test "x`pidof dnsmasq`" != x ; do echo "check DNS status...................."

Shell script entry notes

1. condition test Two formats: test condition or [condition] (Note that spaces are added on both sides)Condition can be a logical operation of multiple sub-conditions. The logical operator numbers include: -A logic and -O logic or ! Logic No &, | 2.

Linux bash shell learning notes

1. Bash script parameter Processing Bash parameters can be accessed by adding a numerical number to $, where: $ # Indicates the number of Script Parameters $1 indicates the script's 1st parameters. $2 represents the 2nd parameters of the

Location parameters in bash shell $ #, $ *, $ @, $0, $1, $2... And special parameters $ ?, Meaning of $-and so on

Location parameters in bash shell $ #, $ *, $ @, $0, $1, $2... and special parameters $ ?, Meaning of $-and so on In bash shellOftenWhen you see some special symbols, I will collect them for reference: Location parameters:For details, see ABS

Shell script usage Summary

Document directory 1. Use of shell Array 2. awk Array Operations 3. shell parameter problems 4. How to output single quotes in awk 5. Methods for connecting awk and shell strings 1. Use of shell Array Value assignment: All = (6 5 4 3 1 8 9 10)

Linux IP proxy filtering system (shell + proxy)

In the previous blog, I introduced the Linux Web page capture instance. In this example, the proxy server is used to capture webpages outside of Google Play. Proxy Purpose In fact, in addition to capturing foreign web pages, IP proxy is required,

Shell string inclusion

# Method 1-- Character comparison #!/bin/bashstr1="hello"str2="he"str3="lo"if [ ${str1:0:2} = $str2 ]; then echo "$str1 include $str2"fiif [ ${str1:2:4} = $str3 ]then echo "$str1 include $str3"else echo "$str1 not include $str3"fi Running

Echo dependencies of an installed RPM package over Linux BASH Shell

Script: #! /Bin/bash # file: rpmdeps. Sh # Set-xrtval = 0; export rtvalcd 'dirname $ 0' workdir = $ PWD; export workdirtest! -Z "$1" | {echo "error, RPM name is required. "Exit 1} tmpfile = 'mktemp/tmp/known_rpms.xxxxxx' | {echo" error, $ tmpfile

Linux Shell study Note 2

  Chapter 4 directory operations 4.3.1 column directory $ Ls directory -D option, force to display only the directory name, not the content   4.4 operation directory 4.4.1 create a directory Mkdir directory Example: $ mkdir hw1 Create the hw1

Total Pages: 541 1 .... 367 368 369 370 371 .... 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.