Windows/linux shell automatically logs in to SSH and executes some commands

SSH Secure Automatic Logon A is a local host (that is, a machine used to control other hosts);b is a remote host (that is, a controlled machine server), if IP is 172.24.253.2;Both A and B systems are Linux. The command on a: The code

Linux du command View folder size and arrange _linux shell in descending order

1. Df-lh 2. Du-s/usr/* | Sort-rn This is sorted by byte 3. du-sh/usr/* | Sort-rn This is sorted by megabytes (M) 4. Select 10 of the preceding Du-s/usr/* | Sort-rn | Head 5. Select the following 10 Du-s/usr/* | Sort-rn | TailDu-h–-max-depth=0

Shell Tutorial (vi): Functions, online Help _shell

Functions allow you to break down into smaller, logical segments, and then be required to perform tasks that require the overall functionality of a script. Using functions to perform repetitive tasks is a good way to create reuse of code. Code reuse

Shell Tutorial (ii): variable, special variable _shell

The variable is a string, and we assign a value. The assigned value can be a number, text, file name, device, or any other type of data. A variable is a pointer that does not exceed the actual data. Shell, you can create, assign, and delete

VxWorks commands commonly used under the shell

Reprint Address: http://blog.chinaunix.net/uid-25099259-id-3187481.html VxWorks commands that are commonly used 1. Task-related commandsSP FUNCTION,[ARG1],..., [ARG9]-Start a task, accept up to 9 parameters, default priority 100, stack 20000

Review shell scripts

What is a shell script. First, it is a script and cannot be used as a formal programming language. Because it's running in the shell of Linux, it's called a shell script. To be blunt, a shell script is a collection of commands. For example, I want

Logical judgments in Linux shell scripts, file directory attribute judgments, if special usages, case judgments

Logical judgments in shell scripts Format 1:if condition; Then statement; Fi (Common) #以命令的方式表达[[email protected] ~]# for i in `seq 1 5`; do echo $i; done12345[[email protected] ~]# for i in `seq 1 5`> do> echo $i>

Linux--shell Script Programming 2

Debugging Methods for Shell scripts -N: Read the command in the script but not execute it to check for syntax errors in the script -V: Executes scripts while printing executed script commands to standard error output -X: Provides

"Linux command line and Shell scripting Encyclopedia" 23 chapters 24 chapters

Chapter 23rd using other shellsThe bash shell is the most widely used shell in the Linux distribution. But it's not the only option, and there are other shells you can choose from.23.1 What is dash shellBaidu Encyclopedia said: Dash Shell is a Unix

Shell finishing (26) = = = Uppercase and lowercase letters replace and randomly take out an odd number

(a) Title: Accept an input, if the uppercase letter is converted into lowercase letters, lowercase letters to uppercase.For example:[Email protected] hushuai]# bash 4.shInput:dingxueDingxue[Email protected] hushuai]# Method (1)The shell code

The difference between single quotes, double quotes, anti-quotes, and backslashes in the shell

1. Single quotation mark (')grep403-212-4921212-234-2343If we're looking for Susan Goldberg and can't use the grep Susan Goldberg Phonebook command directly, GREP will treat Goldberg and phonebook as files that need to be searchedgrep ' Susan Gold '

Shell script installed as service join system boot-service XX does not support Chkconfig

Background: Shell scripting is an essential tool for Linux OPS, and it is important to install shell scripts as a service and join the system to start and then manage them using services.When we run the command to install the service, assume that

Basic analysis of Linux operating system (vii)--bash (Shell) Basics (4)

Ix. unfoldingThe expansion of the command line is done after splitting the word into words. There are seven types of expansion: curly brace expansion, wavy line expansion, parametric and variable expansion, command substitution, arithmetic expansion,

Shell-5.shell echo Command

Shell-5.shell echo CommandEcho---display contentFormat: Echo [options] Text-N Do not wrap in the last line-E parsing escape character\a issued a warning sound\c Finally, no newline symbol is added.\f Line break\ r Enter1.-N do not wrap in the last

Anti-DDoS attack shell script

Recently, the server has been frequently attacked by DDoS, so it can only be solved temporarily by IP source. IP is not the source of changeable, light by hand to add is simply a nightmare, think of a method, with the shell to do.Relatively simple,

The break,continue of the shell script, and the exit difference

Break in a Linux script continue exit returnBreakEnd and Exit loopsContinueThe following code is not executed in the loop and continue into the next round loopExitExit the script,Always bring an integer to the system, such as Exit 0ReturnReturning

LINUX Shell Script Guide Learn (1)--shell escape character in Echo

0.echo Command entry: (Default bash support, CSH not supported)-N does not output line breaks-E Open backslash ESC escape-e Suppress backslash ESC escape (default)Both 1.echo and printf can print output information, except that Echo adds a newline

Source and the shell script file name to be executed. The differences between the shell script file name and the./shell script file name

The following content is based on the Linux bash Environment There are many ways to run shell scripts in Unix. Suppose there is a script that can be run called test. sh. You can add the script file name, source test. sh (= .. /test. sh two .), you

Error: couldn't connect to server 127.0.0.1: 27017 src/Mongo/Shell/Mongo. JS: 91

Recently, I started to learn how to install Mongo in windows. It is not difficult to perform this operation. I still use it in Linux. But refer to some documents after installation. The title error was found when Mongo was started. Finally, this

Shell script learning and summary

1. shell scripts are case sensitive2. Special Unix characters: (; $? & * () [] ''+ Escape ()3. Shell Comments start #4. Function DefinitionFunction fuction_name (){Command to execute}Function_name is directly used for calling.5. Control Structure1)

Total Pages: 541 1 .... 19 20 21 22 23 .... 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.