Linux Learning Notes (eight) shell overview

First, what is the shell?The shell is a command-line interpreter that provides users with an interface system-level program that sends a request to the Linux kernel to run the program, and the user can start, suspend, or even write some programs

Error in host address encountered while running Spark-shell

Spark 1.4 was downloaded and the following error was encountered while running Spark-shell: Java.net.unknownhostexception:ukon-m-q0ep:ukon-m-q0ep:nodename nor servname provided, or not knownAt Java.net.InetAddress.getLocalHost

Remote execution of SHELL commands on other Linux machines using GANYMED-SSH2

In practice, it is sometimes necessary to remotely start programs on other Linux hosts from the Web management interface, which can be easily met by SSH protocol. In fact, in the Hadoop architecture, this principle is used when the DN is started on

Shell script recursively prints all directory files in the specified directory

#!/bin/bash#递归打印当前目录下的所有目录文件. PRINTF() {ls $| while ReadLine#一次读取每一行放到line变量中 Do[- D $/$line] && {dir="$/$line" Echo $DIR} dir1= ' DirName$DIR`#求路径. A= ' Ls-f$DIR 1| grep/| Grep"\$line\>"`#判断line是不是一个目录. if["$A"=="$line/"]; ThenPrintf"$

Shell Basics II: Find tips, use of Find and Xargs

when using Find, just write the desired action in a file, you can use the exec to match the Find lookup, very convenient (In some operating systems only the-e x E C option is allowed to execute commands such as L s or ls-l). Most users use

Shell Basics-Bash basic features

Historical command HistoryOption:-C Empty History command-W Save History Command nowThe history command entered under Linux will be saved in the root directory: ~/root/.bash_history fileSave 1000 by default to modify environment variables in the/etc/

Shell Mutt Msmtp e-mail

cat mail.sh#!/bin/bash#--------------------------------------------------# created:2015-05-04#  author:jimmygong# mail:[email protected]# function:shell mutt msmtp# version:1.0

26 Ways to practice the substring of a Linux shell by taking variables

######### #20150419 ############################# #题目: Variable a= ' a/b/c ' how to intercept get c @@@@@@@@@@@@@@@@ From the operation and maintenance class 21 long wing finishing @@@@@@@@@@@@@@@@@@@[[email protected] shell]$ uname -r 2.6.32-504.

Nginx combined with Shell statistics user's UV and IP summary

The company's new demand, suspected PV and IP ratio is not right, see if there is malicious east:Nginx Configuration:Log_format main "" $http _user_agent "" $http _x_cookie "" $request _time "" $upstream

Using the shell for mathematical operations

You can use, let (()) [] perform basic arithmetic operations, and use advanced operations bc more efficiently.Look directly at the code and the output is clear.Let[Zhengweiwu A: -~]$ no1=4[Zhengweiwu A: -~]$ no2=5[Zhengweiwu A: -~]$ Letresult=no1+no2

Some of the supernatural powers of ${} in the shell

Suppose we define a variable as:File=/dir1/dir2/dir3/my.file.txtWe can replace each other with ${} to get different values:${file#*/}: Take out the first/its left string: dir1/dir2/dir3/my.file.txt${file##*/}: Take out the last/and left string:

Shell script that executes system commands and writes output to a log file

Presumably the requirement is that the AIX system Usysfault command takes the fault light information, but this command appears to be performed only by the root user, and the other user executes the error. All sorts of ways to empower all fail, so

Some of the supernatural powers of ${} in the shell

Suppose we define a variable as:File=/dir1/dir2/dir3/my.file.txtWe can use${ }Replace each to get different values:${file#*/}: Take out the first one./And the string to its left:Dir1/dir2/dir3/my.file.txt${file##*/}: Take the last one off./And the

Linux Shell QuickStart Small example (Shell 13 ask learning note)

Read the CU forum Shell 13 After a few small experiments, prepare to forget!Shell 13 Q Address: http://bbs.chinaunix.net/thread-218853-1-1.html#!/bin/bashfunction func_com () {Local a=1 local b= "2c3" Echo ${a}b echo $ab}function Func_arra Y ()

The grep command of the Shell scripting tool

Tag: The grep command of the Shell scripting toolgrep (abbreviated from globally search a Regular expression and Print) is a powerful text-search tool for Linux systems that can search for text using regular expressions , and print out the matching

Shell arithmetic operations

The coffee is too much to drink. I guess I'll have no sleep tonight. Mom, Egg.The arithmetic operation of the shell. There are too many. There are many tools available to download on the Web. This article only selects the commonly used to carry on

Summary of Shell Small issues

Summary of Shell Small issuesThis article source: http://blog.csdn.net/bluishglc/article/details/44276607 prohibited any form of reprint, or will entrust CSDN official maintenance rights! Summary of Shell Small issues If

Variables related to shell and command-line arguments

$ -----The name of the current program is actually an internal parameter, unlike $1,$2 .... because it must have! $#----The total number of arguments passed to the program, that is, the legend of the array size$?----the previous code or shell

Zabbix security: Execute command after breaking weak password, get shell

If your Zabbix Admin password is too weak or use the default password (Admin/zabbix), and the hacker cracked the password, Zabbix server in front of the hacker has no resistance. Hackers can create "system.run[command,]" Monitoring items to execute

Shell Step by Step (1)--Introduction

1. View Current user (number of users) [email protected]: ~# who [| wc-l][email protected]: ~# whoKallen Tty4 2015-01-16 10:46Kallen tty5 2015-01-16 10:47Kallen Tty2 2015-01-16 10:42Kallen tty3 2015-01-16 10:42Root Tty6 2015-01-16 10:58Kallen tty1 2

Total Pages: 541 1 .... 134 135 136 137 138 .... 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.