Linux shell script one-click Installation Ngrok

Recently, to the internal network for debugging and access, bought 3 peanuts can only map 6 ports, is not enough to meet the needs, just have a friend to me said Ngrok can also be carried through the intranet, research for a few days, light

Linux shell script programming regular expression _linux shell

A regular expression and wildcard characters 1 A regular expression is a string that matches the criteria in a file, and a positive one contains a match, and grep,awk,sed commands can support regular expressions The 2 wildcard is used to match the

One day a shell command Linux text Operation series-tree command detailed _linux Shell

The tree command is the protagonist of printing files and directories in a graphical structure. This command is not normally included in Linux distributions. You need to install it yourself with the package Manager. Instance: 1. Tree Print all

A simple way to get file names and directory names using the bash shell _linux Shell

Objectiveor do you write an automated packaging script today that takes you to get the last file name from the path name. Here is a record of the implementation process. Of course, in the end I will also give the official practice. (PS: Very awkward,

Tips for Shell grep lookup process _linux Shell

Most people use grep to find the specified process in the PS aux output when they write the shell filtering process, but they also display the grep process, such as finding the pptpd process, which matches two: Copy Code code as follows:

Shell basic calculation, logical operation, bit operation detailed _linux shell

Provides an operational expression in the following format: $ ((expression)) $ echo $ ((5* (3+3)) 30 $ result = $ (($myvar-10)) The shell provides a convenient number of conversions between: $ echo $ ((013)) #八进制 $ echo $ ((0xa4)) #十六进制 You can

Sharing several tips in shell programming _linux shell

1. Print some header informationCommand ............Dilimiter The standard input of the command as the content of the boundary symbol DilimiterCommonly used in the echo command, this avoids the need to use an echo command without outputting a line,

Two scripts to check Linux network status _linux Shell

First, through the timing of email to detect network connectivity Copy Code code as follows: #/bin/bash echo "Daily Test mail" > State.txt Mail-s Server_state Abc@jb51.net Rm-df./state.txt ~ Crontab-e Add the following

Shell traversal directory processing specific directory script code _linux shell

Requirements: Delete files, directory structure: ip/year/month, everyone has a copy of this directory now need to delete all files before 2012, 2012 after the deletion of a specific month.Originally wanted to use find, the results found that these

When Linux executes the. sh file, prompts no such what to do with file or directory (three solutions) _linux Shell

First of all, let's look at the problem description, the following figure is my run-time error screenshot: Solving method Analyze the reason, maybe because I have a problem with my platform migration, we have permission to convert. 1 conversion

The sudo configuration of the Linux system _linux shell

Here today we discuss a very funny system configuration error in Linux systems, which is sudo, and why it's funny, because if it's improperly configured, it's easy for the average user to claim root, and without a bit of technical content, System

Delete a Web site with the shell command the latest NB method and code _linux

Copy code code as follows: # Is it really a headache, or do you want to write a shell script to get rid of these scripts Copy Code code as follows: #!/bin/sh LS $1/*.htm | While read file Todo Sed-i-E "/if (

Shell Script Build FTP server (VSFTPD) _linux shell

Various points of knowledge are written in the notes. Only need sudo $PATH/ftpsetup.sh, default to test/test for user name password login, after the root directory read-only, subdirectory writable writable. Test OK on Ubuntu 13 and Linux Mint 15.

Bash SCP command not found solution _linux shell

centos6.0 is installed, many packages are not installed because a minimal installation is selected, so some commonly used commands are not supported, as follows:# SCP-bash:scp:command not found My solution is to find the package on the SCP on a

Shell scripts that consume CPU resources _linux shell

Copy Code code as follows: #! /bin/sh # filename killcpu.sh If [$#!= 1]; Then echo "USAGE: $ " Exit 1; Fi For i in ' seq $ ' Todo Echo-ne " i=0; While True Todo i=i+1; Done "| /bin/sh & pid_array[$i]=$!; Done

Shell script implementation to determine whether the IP address in an IP segment code sharing _linux Shell

Cat ipcalc.sh #!/bin/bash ip=$1 If [-Z $IP] then echo-e "\e[31;42m sh ipcalc.sh IP \e[0m" exit fi while read MASK do min= '/usr/bin/ipcalc $MASK |awk '/hostmin:/{print $} ' max= '/usr/bin/ Ipcalc $MASK |awk '/hostmax:/{print $} ' min= ' echo $min

Shell implementation of Iptables management script sharing _linux Shell

The previous script is in save mode, now attach the command to a file, so that it can be easily modified two times or somethingThe script is basically like this, we can change with their situation again ~ add function or something.

Shell string Operations detailed _linux shell

1, the shell variable statement judgment An expression meaning ${var} Variable var with the same value as $var ${var-default} If Var is not declared, then use $default as

Bash Shell comments several ways to _linux shell

1, the simplest way Copy Code code as follows: : .... Comment Content Block The input is redefined to the previous command, but: it is an empty command, so it is equivalent to a comment.If a command with an inverted

Bash Shell programming Exercises

Original file:Find/etc-name passwd 2>&1 | Tee Ee.log1. Cat-n The document contents of the E.log with the line number and enter E2.log in this document:[Email protected] ~/t2scripts $ cat-n E.log |Tee E2.log1/etc/passwd2 3 4Find:

Total Pages: 541 1 .... 225 226 227 228 229 .... 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.