Shell Common Commands

"Set Environment variables"1. Use the ENV command to display all environment variables$ env2. Use the echo command to view a single environment variable$ echo $PATH3. Set a new environment variable$ export hello= "hello!"Syntax: Export

Shell monitors multiple hosts

Write a script with the shell at the same time monitoring multiple hosts (monitoring host whether online, CPU, memory, hard disk, IO use status, and have the mail notification function), the big God after looking at the wrong place or have a better

An issue that cannot be referenced after a variable in the shell is defined as an asterisk (*)

In the process of writing a shell script, it is sometimes necessary to use some variable values are defined as (*) variables, but when we try to reference this variable, bash has the default to replace (*) the list of all the filenames in the

Shell Display with color font

echo Display in shell script with color display, echo display with color, need to use the parameter-e format as follows: Echo-e "\033[word background color; text color m string \033[0m" Example: Echo-e "\033[41;36m something Here \033[0m "where 41

Linux shell String Operations (length, find, replace)

String-related operations are often involved in the shell batch process. There are a lot of command statements, such as: awk,sed can do string various operations. In fact, the shell built a series of operating symbols, you can achieve similar

Shell script GBK Environment Search Utf-8 Log

Method 1:Use Linux iconv to convert the Utf-8 log to GBK encoded file, and then gbk the statistics in the environment. UTF8 () { log_file= "/lcims/crontab_shell/outfile/lan_wlan_wo/socketmain.log141114_lan1" LOG_FILE_TMP= "/

Shell Script-translating English words

I've been learning Linux and shell scripts lately. English has not been returned to teachers for many years. Encountered the words do not understand to open a Word bully Web dictionary to translate, a long time more uncomfortable. Accidentally found

Shell Script Note three: While loop until loop

While Condition;doStatmentDoneUntil Condition;doStatmentDonePractice:Write a script: every five seconds to see if JT has landed, did not login to continue to execute, landed the Stop command650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4

Differences in Unix shell (), [] and [[]]

Tag:http   io   os    use     file    sp    div   2014   amp    The difference between the Unix shell (), [] and [[]]   1. First of all, although very similar, but conceptually, they are different levels of things. "[[" is a keyword, and many

The Linux Shell cannot be complete by pressing the TAB key

Today, I have a problem. The parameters behind git are tab-key, such as Git c_Search the internet for half a day to find the answer as followsToday in Linux with Useradd new users, found that the use of new users when landing, in the shell can not

Shell Script Learning 13 Shell array: definition of shell array, array length

The shell is much more programmatic in terms of programming than Windows batch processing, both in loops and operations.Bash supports one-dimensional arrays (which do not support multidimensional arrays) and does not limit the size of arrays.

Classic Sort algorithm-Hill sort Shell sort

Classic Sort algorithm-Hill sort Shell sortHill sort Shell Sort is an improvement based on the insertion sort , which is also divided into two parts,The first part, Hill sort IntroductionThe second part, how to choose the keyword, the key is to

Shell script learning notes series-1

I. Learn the knowledge reserve of shell programming 1. Related Linux system command applications; 2. Familiar with VI/Vim editor and related client software settings; 3. Basic services: NTP, crond, and network services: NFS, rsync, inotify,

Shell script instance

Note: Some variables related to parameters passed to shell:$ # Number of command line parameters$? Return Value of the Call Command$ Process ID of the current process$! Process Number of the last background command$0 the first parameter of the

The process of zjdroid removing the encrypted Shell

Use zjdroid to unshell an APK that is encrypted and shelled. Although this cainiao has some coding experience, it is the first time to crack the code. This time I encountered some problems when I used zjdroid to shell an APK, So I recorded that I

Shell determines whether a file exists

Shell checks whether a file exists #! /Bin/sh # shell checks whether the directory exists or has the permission mypath = "/var/log/httpd/" myfile = "/var/log/httpd/access. log "# Here, the-x parameter determines whether $ mypath exists and has

Linux automatically installs JDK shell script, linuxjdkshell

Linux automatically installs JDK shell script, linuxjdkshellAutomatically install the JDK shell script in Linux A: The machine running this script, Linux B: The machine on which JDK is to be installed, Linux First, log on to machine B where jdk is

[Shell Study Notes] curl command summary, shell Study Notes curl

[Shell Study Notes] curl command summary, shell Study Notes curlWen si haihui==============CURL command Summary1. DownloadCurl-o [file name] www.baidu.com2. Display HTTP request header informationCurl-I www.baidu.comShow HTTP response header

Install tomcat in linux (centos) (use shell scripts to install tomcat as a service) and centostomcat

Install tomcat in linux (centos) (use shell scripts to install tomcat as a service) and centostomcat1. Download tomcatDownload the linuxlinuxversion (tar.gz) from http://tomcat.apache.org/download-70.cgi)2. decompress, upload, and grant

Shell (Shellshock) vulnerability repair

cve

Shell (Shellshock) vulnerability repairShell (Shellshock) vulnerability repair Background: More than two weeks have passed since the outbreak of the "Shellshock" Vulnerability (announced on April 9, September 24, 2014 ). I believe many people have

Total Pages: 541 1 .... 148 149 150 151 152 .... 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.