Linux Shell Script Tutorial series (ii): TERMINAL Print command detailed _linux shell

Terminal printing A terminal is an interactive tool through which users can interact with the shell environment. Printing text in a terminal is a basic task that most shell scripts and tools need to perform on a daily basis. Through the terminal

Linux BASH Shell set font and background color _linux shell

BASH shell set font and background color Echo-e "\e[31mtest\e[41m" \e[30m change the display color of a character to black \e[31m change the display color of a character to red \e[32m change the display color of a character to green \e[33m change

[mongo]couldn ' t connect to server 127.0.0.1:27017 at Src/mongo/shell/mongo.js:l112__js

Today, at the start of the MONGO when there was a mistake, my win7 environment. E:\server>mongo MongoDB Shell version:2.4.5-pre- connecting to:test Mon Sep 13:35:05.335 JavaScript Execution Failed:Error:couldn ' t connect to server 127.0.0.1:270

Linux common commands and Shell script programming __ Block chain

Import public key to trust certificate Keytool-import-file catserver.cer-keystore "$JAVA _home/lib/security/cacerts"-alias catserver Remove Public key Alias Keytool-delete-alias Catserver-keystore Cacerts-storepass Changeit Remote Debugging

Using shell scripting to ping Check network connectivity between the blade server and the primary server

In order to check the network connection status between the daq01 and the blade server,1. Use the output rule of ping command, if can ping pass, will output 0% packet loss value; If you cannot ping the pass, the 0% packet loss is not output2. If the

Shell Base 06 Control script

1. Signal ProcessingLinux uses signals to communicate with processes running in the system.Signal Value Description1 SIGHUP Suspend process2 SIGINT Terminate Process3 Sigquit Stop Process9 SIGKILL Unconditional Termination processSIGTERM terminate

Set,env and Export commands show the difference between shell variables, and environment variable literacy (i.)

Kinds:? Set: Used to display local variables, display variables for the current shell, including variables for the current user? ENV: Used to display environment variables and display variables for the current user.? Export: Used to display and set

Shell script Application (iii) for, while, case statements

Foreword: It is difficult to write all the code in sequential order when it is hard to satisfy the requirements when facing various lists and repeating tasks. Use other program control structures such as loops, branches, and more to make it easier

Shell scripts monitor system load, CPU, and memory usage

#一. Writing script files for system load monitoring#!/bin/bash#########################################################################This scripts is checking the system load,vision 0.1#Author: Hejunyi#E-mail:158****[email protected]################

What is a shell? What does bash do? What's the matter?

What is a shell?  What does bash do? What's the matter?The shell is the interface between you (the user) and Linux (or, more accurately, you and the Linux kernel). Each command you enter at the prompt is interpreted by the shell before being passed

Common string processing (intercept, judge, replace) for SED and ask under Linux shell

After learning about powerful text flow processing commands such as SED and awk, the simple string processing often forgets a more efficient and concise method, which is the shell's built-in string processing.1, the judgment and assignment of the

37 Common Linux shell command combinations

Serial number Task Command Combination 1 Delete a 0-byte file Find. -type f-size 0-exec rm-rf {} \;Find. Type F-size 0-delete 2 View processes, sorted by memory from large to small PS-E-O "%

Linux Shell parameter extensions (Parameter Expansion)

This article main reference: HTTP://PUBS.OPENGROUP.ORG/ONLINEPUBS/9699919799/UTILITIES/V3_CHAP02.HTML#TAG_18_06_02Other information:http://www.ibm.com/developerworks/cn/linux/l-bash-parameters.htmlThe parameter extension is represented as:

The meaning of shell variable $#,$@,$0,$1,$2 in Linux

#!/bin/bash#Created by Ley on 2014-11-14#Testing the Paramtersecho "The Compleate list is%s\n" "$$"echo "The Compleate list is%s\n" "$!"echo "The Compleate list is%s\n" "$?"echo "The Compleate list is%s\n" "$*"echo "The Compleate list is%s\n"

function in shell, array in shell, demand analysis of alarm system

20.16-20.17 functions in the shell The function is to organize a piece of code into a small unit, and give the small unit a name, when the code is used to call the name of the small unit directly. 格式: function f_name() {

Chapter 2. Learn shell scripts

What is shell scripts? Shell script: A shell script is a script written for shell !』 Shell script is a program written using the shell function. This program uses a pure text file to write shell syntax and commands (including external commands, it

[Chrome_ OS] crosh shell terminal basic commands

Google's Chrome OS shortdes a shell environment known as chrome shell, or "crosh" for short. crosh events des several terminal commands that can be used on all chromebooks, even ifdeveloper mode isn't enabled. Crosh includes commands for connecting

(2) bash shell?

1. What is shell? In fact, I have heard of shell before I came into contact with Linux. At that time, I was talking about shell programming and I knew nothing about it. But surprisingly, I remember this term when my memory is really bad. Okay,

Linux Bash Shell Learning (5): Special files, aliases, options, and parameters

This article is the Reading Notes of customizing your environment, chapter 3 of learning the bash shell 3rd edition. Setting up a good user environment is crucial for our development. This section describes four aspects: special files, aliases,

Use Shell in Linux to monitor network traffic, and use linuxshell

Use Shell in Linux to monitor network traffic, and use linuxshell #input the network name if [ -n "$1" ]; then eth_name=$1else eth_name="eth0"fi send_o=`ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print

Total Pages: 541 1 .... 32 33 34 35 36 .... 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.