Linux firewall iptables Common shell scripts

The code is as follows Copy Code #!/bin/sh#------------------------------------------------------------------------------# for debugging use Iptables-v.Iptables= "/sbin/iptables"Ip6tables= "/sbin/ip6tables"Modprobe=

Linux shell data Redirection (input redirection and output redirection) detailed analysis _linux shell

Before we know about redirects, let's take a look at the Linux file descriptor. Linux file Descriptor: Can be understood as a Linux trace open file, and the allocation of a number, this number is similar to the C language operation of the file when

Shell Scripting Learning Guide [VI] (Arnold Robbins & Nelson h.f Beebe) _linux Shell

Learn Shell to now, always thought that they will not commit a very two problems, the result of this book last time made a very 2, integrity not protect AH!!! I'm under the test file path except wildcard * and? What can be used outside the same

Shell Programming Bash quotes that thing _linux shell

First of all, in the bash script, there are three kinds of quotes 1. Single quotes '2. Double quotes "3. Inverted quotes ' Single quotation markThe two string enclosed in single quotes is an ordinary string that retains its original literal

Shell calls API store to find cell phone number attribution

Introduction of API Store API store is an API aggregation platform that can provide a variety of data services to the outside, more representative of the Dev store, Baidu API store and aggregated data, and so on, such services through the provision

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 '

>/dev/null 2>&1 in the shell

This article goes from http://www.kissyu.org/backgroundWe can often find such statements in a shell script >/dev/null 2>&1 . Before I did not go into the role of this command, copy replicable, until last week I wrote this order accidentally 2>&1

Linux shell scripting Learn Xargs commands using detailed

The effect is to convert the argument list to small pieces to pass to other commands to avoid the problem of too long argument listXargs is a filter that passes parameters to the command, and is also a tool for combining multiple commands. It

Use ZSH with ITerm2 under Mac to create a shell with git hints

ITerm2 is an OS X next open source free terminal tool, as a substitute for terminal, compared to it has its own features, such as screen cutting, System hotkey, check copy and so on (below is a brief introduction). The use of zsh, paired with ITerm2,

Linux Shell Series Tutorial (eight) Shell printf command details

This article is part of the Linux Shell Series Tutorial (eight), more shell tutorials: Linux Shell Tutorials In previous: Linux Shell series Tutorial (vii) Shell output This article has a brief introduction to the Shell printf command, which

Shell standard output, standard error >/dev/null 2>&1

The shell can often be seen: >/dev/null 2>&1Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $4} ' 1>/dev/null 2>/dev/nullThe result of the command can be defined in the form of a%> output/dev/null represents an empty device fileWhere does

Shell to mark input, standard output, error output

the shell can often be seen: >/dev/null 2>&1 Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $4} ' 1>/dev/null 2>/dev/nullThe result of the command can be defined in the form of a%> output/dev/null represents an empty device fileWhere

Shell Quick Tour

Summary from:HTTPS://GITHUB.COM/QINJX/30MIN_GUIDES/BLOB/MASTER/SHELL.MD;http://blog.itpub.net/14293828/viewspace-14475701. What is a shell script exampleLet's look at an example:#!/bin/sh~mkdir shell_tutcd shell_tut for ((i=0; i10 do touch

Shell Exit 0 Exit 1

It's all the same, it's quitting, just returning this 0 and 1 is the error or the correct code to return to the operating system.Exit 1 refers to the return value that the script runs to indicate success or failure, and the reason for the

Typical configuration for secure remote access or file management using the SSH (Secure shell, security shell) feature

Configuration of the Stelnet server# Generate RSA key pair[DEVICEB] Public-key Local create RSA# Generate DSA Key pair[DEVICEB] Public-key Local Create DSA#使能SSH服务器功能[DEVICEB] SSH server enable#配置接口ip地址#设置stelnet客户端登陆用户界面的认证方式为scheme[Deviceb]line

Description of the If else and greater than, less than, equal to logical expressions in the Linux shell

For example, comparing strings, judging whether the file exists and whether it is readable, etc., usually uses "[]" to represent the condition test.Note: The space here is important. The space to ensure the square brackets. I have wasted a lot of

Shell learns to find files in the current directory and folder size-' du ' command and ' DF ' command

After a few days of disk-filled events, I found myself completely unaware of DU's command, so I was determined to learn.I'll just be a porter, the extranet. Find a tutorial' Du ' is the size of the Find folderDuTyping The above at the prompt gives

VNCSERVER,SSH Secure Shell client,window remote Control Linux

1.VNC remote connection to Linux graphical desktop2.SSH Secure Shell Client connection to Linux terminal3. Set FTP and Linux transfer files1.VNC remote connection to Linux graphical desktopRun under CentOS:Yum-y instll VNC Vnc-serverAfter running,

Linux Shell get time and time interval (MS level)

  Note: When performing some performance tests, we sometimes want to calculateProgramSometimes, you may write a shell script to control the performance test (for example, you want to run n times to obtain the average value). In short, one of these

Shell knowledge point supplement (1)-Prompt character setting/read/declare/typeset/variable setting function/alias/universal character and special symbol

1. PS1: (set the prompt character) This is interesting. You can customize your own prompt; Every time we press the [enter] key to execute a command, the prompt character will appear again, and we will take the initiative to read the variable

Total Pages: 541 1 .... 16 17 18 19 20 .... 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.