About the difference between a login shell and a non-logon shell

ftp

What is login Shell: Login shell can be used by user login, such as/bin/bash,/bin/sh,/bin/csh ... The general Linux Default User shell is bash, which means you can log in and write commands. Non-logon shell: The classic/bin/nologin is a non-login

Shell script realizes IP address legality judgment _linux shell

Do unix/linux under the development, scripting skill is indispensable, as Shell programming, is also a profound technical field, here in order to learn, write a simple IP address is the legal micro-script program, this small program is also very

Ways to process JSON data at the shell command line _linux Shell

Because I've been working on some JSON data formats recently, I finally found JQ this great tool after a search. JQ allows you to manipulate JSON directly under the command line, including slicing, filtering, converting, and so on.Let's use a few

How to debug shell scripts with built-in variables _linux shell

The general shell script debugging is basically echo to deal with the larger script when, it is more trouble, out of the question, is not very good to locate which line of code problems.In fact, some of the variables built into the shell can be a

A shell script to test download speed _linux shell

Using the shell to test the download under Linux, the code is as follows: Copy Code code as follows: #!/bin/bash #date: 20140210 #used for test server download speed R_host= "188.18.28.19" R_dir= "/home/test0208/tmp" r_file= "$r _dir/

Share a useful iptables script (various filtering notation references) _linux shell

This iptables script is good, very practical, according to the actual application can be changed to use their own. Share it for everyone to refer to. The original author anon. The source code is as follows: Copy Code code as follows:

VTune Auto Install script share _linux Shell

Copy Code code as follows: #!/bin/bash #!/usr/bin/expect-f #!/usr/bin/env Bash Yum Install-y expect wget Cd/root wget http://172.16.92.99/share/tar/vtune_amplifier_xe_2013_update15.tar.gz wget http://172.16.92.99/share/tar/EVAL_L_VT__VGXB-

Some of their common shell scripts share _linux Shell

Wrote a little shell instance of myself, though very small, but all the big programs are stacked up by small modules, programmers must understand a script writing, and I, will only work under Linux, so you can only write Linux shell script, oh, this

Code sharing for batch file transcoding using Iconv in shell scripts _linux shell

In development, we often need to change the N-file encoding, ICONV can only make changes to a single file, how to do? Let's write a shell script to solve this problem. Example one: Using shell script to implement bulk transcoding operation. #!/

Shell multithreaded operation and thread number control instance _linux shell

Objective In the business development process, often in the background to write some shell script processing data, but it is estimated that many people do not know that the shell script can also support multithreading, and very simple. This article

Some special symbols and functions common in shell scripts _linux shell

When writing a shell script, we need to use a variety of special symbols, through these special symbols can make us write code more concise and efficient, here to the summary: 1, {} curly braces:Usage One: Wildcard extensionEg:ls

Use of the sort sort command under the shell

First set up a file, very messy, no rule: A positive sort: Inverted sort: Uniq Delete duplicate rows in a file: Use this command to sort the files first. For file redundancy, as long as all duplicate characters of the file are displayed

Pipeline commands in the shell and parallel execution

Found that three symbols are useful when writing scripts. One is the pipe command "|", one is executing the command "&" in parallel, and the other is "&&" The so-called pipe, acting as a function of the connection between the front and back two

Script for directory file backup using shell position variables

Today only found that the original position variable can also play so cool!! This is a file directory backup using the location variable: #!/bin/bash Date= ' Date +%f '//date output from year to month Tar Czf $ $DATE. tar.gz $ >/dev/null 2>>/opt/

Shell Learning (ii) Getting started to a complex script instance (Calculator)

Shell file Start The shell file must start with the following line (must be on the first line of the file): #!/bin/sh The symbolic #! is used to tell the system that the parameters behind it are the programs used to execute the file. In this

Enterprise shell script Analysis and cutting Apache log combat

One, analysis Apache log 1, there is a document SHELL.SH, the contents are as follows: [Root@test3root] #catshell. sh Http://www.baidu.com/index.html Http://www.google.com/index.html Http://www.baidu.com/get.html Http://www.baidu.com/set.html

"Lazy shell script" seven--format processing data into the database implementation

0. IntroductionEncountered in real-world application development: Storing unformatted file data in a database. For traditional formatted data: Ini/json/xml We all have a ready-made class library to implement. What about non-formatted data like this?

The iptables of the shell

ack

These five positions are also known as five hooks (hook functions), also called Five rule chains.1.PREROUTING (before routing)2.INPUT (packet inflow port)3.FORWARD (forward tube card)4.OUTPUT (Packet egress)5.POSTROUTING (after routing)This is the

Linux shell script output with color text

The color of the text terminal can be generated by using the ANSI unconventional character sequence. Example: echo -e "\033[44;37;5m ME \033[0m COOL" The above command sets the function as follows:

Linux Shell if [-n] Correct use method

if [str1 = str2] When two strings have the same content, the length is trueif [str1! = str2] When string str1 and str2 are not equalIf [-N str1] is true when the length of the string is greater than 0 (string non-null)If [-Z str1] is true when the

Total Pages: 541 1 .... 266 267 268 269 270 .... 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.