Use Autossh to implement the method of creating SSH tunnel on boot and shell script.

Sometimes back to SSH tunnel, the manual use of SSH to create these is not too big a problem, but if you try to boot, write a shell script and run the script in Rc.local is not successful, the reason is not known.Later discovered autossh this thing,

Display colored words in a shell script (Linux)

One, echo command (with parameter-e) cat color.sh#!/bin/bashecho -e  "\033[30m black \033[0m" echo -e   "\033[31m red \033[0m" echo -e  "\033[32m green \033[0m" echo -e  "\ 033[33m yellow \033[0m "echo -e " \033[34m blue \033[0m "echo -e " \033[ 35m 

Polysh Bulk execution of shell commands

Installing Polyshwget http://guichaz.free.fr/polysh/files/polysh-0.4.tar.gztar -zxvf polysh-0.4.tar.gzcd polysh-0.4sudo python setup.py installUsing Polysh Usage:/usr/bin/polysh [OPTIONS] HOSTS ... Control commands is prefixed by ":".

[Linux]shell Multi-process concurrency-detailed version

Business backgroundThe schedule.sh script is responsible for scheduling the execution of the user's trajectory engineering script, and intercepts some of the code as

Shell programming Conditional judgment----use case ... ESAC judgment

Conditional judgment----Use case ... ESAC judgmentCase $ variable name in "First variable content") Program Segment;; "Second variable content")Program Segment;;*) Other program execution segments that do not contain the contents of the first

Experiment one user interface with Shell commands

First, experimental hours: 2 hours second, the purpose of the experimentV is familiar with the Redhat_linux user interface and makes common system settings.V Master the Common shell commands.Third, the experimental environmentV A computer running an

Bash-shell-scripts Advanced Script Configuration IP address

[[email protected] shell]# cat mod_ip_hostname.sh #!/bin/bash#auto modify  Ip and hostname#by colin on 2015-05-07ip_config= '/etc/sysconfig/network-scripts/ Ifcfg-eth0 ' hostname_config= '/etc/sysconfig/network ' hosts_config= '/etc/hosts '

Three advanced variables and strings for the Linux shell

Advanced variable contains three parts1. Variable expansion2. Command replacement3. Arithmetic ExpansionIn the bash shell, the $ operator triggers the above three extensions in the following basic form:Basic types of extensions examples${variable

〖linux〗 simply package the shell and some files into a separate "executable file"

Sometimes to share a tool with others, but also need to provide more documents;If sharing a compressed package also have to teach each other how to extract, execute which script, feel the need to transfer more content is inconvenient;A few shell

26 Ways to practice the substring of a Linux shell by taking variables

######### #20150419 ############################# #题目: Variable a= ' a/b/c ' how to intercept get c @@@@@@@@@@@@@@@@ From the operation and maintenance class 21 long wing finishing @@@@@@@@@@@@@@@@@@@[[email protected] shell]$ uname -r 2.6.32-504.

Common shell commands for Lua

lua

As a small scripting language, LUA functions can be run and debugged using shell commands, and here are a few common shell commands. Basic format is LUA [option parameter] [script parameter](1)%lua program name. LUA--run the LUA program

Shell bulk Compress pictures within specified folder and subfolders

Shell bulk Compress pictures within specified folder and subfoldersThe user uploads the picture, generally has not been compressed, causes the space to waste. Therefore, you need to write a program to find the folder and subfolders of the picture

LINUX Shell Scripting related

Debug Script Test Script syntax: bash-n file.sh View script every step of execution: bash-x file.sh position variable: $1,$2,... Special variables:%?: Execution status of the last command $#: number of parametersHow to perform arithmetic operations

Common Linux shell commands

1. File operationCP MV MkDir CatTouch creates a new file, changes the last modified dateSource makes the file effective immediatelyWc-l the number of rows in the filename statistic file2. System commandsWHO displays user information currently logged

Shell command Tips--text to weight and maintain the original order

In short, this technique corresponds to one of the following scenariosSuppose there is text as followsccccaaaabbbbddddbbbbccccaaaaNow it needs to be re-processed, this is very simple, sort-u can be done, but if I want to keep the text in the

The shell condition determines if the-Z to-D meaning

The shell condition determines if the-Z to-D meaningShellfilestringless Terminal user[-A file] is true if file exists.[-B file] True if file exists and is a block special file.[-C file] True if file exists and is a word special.[-D file] True if

Common shell commands for Hadoop

A. Common Hadoop commands1. The FS command for Hadoop#查看hadoop所有的fs命令Hadoop FS#上传文件 (both put and copyfromlocal are upload commands)Hadoop fs-put jdk-7u55-linux-i586.tar.gz hdfs://hucc01:9000/jdkhadoop fs-copyfromlocal jdk-7u55-linux-i586.tar.gz

Shell Custom Array element delimiter

Company personnel named image used to add a space, today there is a need, to bulk download this write pictures, this egg hurtThe correct URL is thisHttp://url 2119 01.jpgHttp://url 001.jpgWritten into the text will be added to escape,

Shell programming tmpwatch

Shell programming tmpwatch As a system administrator, you often need to regularly clear files with certain rules, such as expired logs, expired archives, and backed up files. If you use certain matching rules to find these files and pass them to the

Shell script to add a user to delete a user's deleted files

Shell script to add a user to delete a user's deleted files #/Bin/bash # DEBUG = 0ADD = 0DEL = 0RM = 0 while [$ #-gt 0] docase $1 in-v |-verbose) DEBUG = 1 shift ;; -h | -- help) # help document echo "'basename $ 0' -- add LIST -- del LIST-h | --

Total Pages: 541 1 .... 231 232 233 234 235 .... 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.