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

Linux gets time in the shell

Linux gets time in the shellGet the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet

Shell's case statement

The Shell Case statement is a multi-select statement. A case statement can be used to match a value with a pattern, and if the match succeeds, the matching command is executed. The case statement is in the following format:The code is as

Linux Shell get random number

The Shell profile:When a new interactive shell is started,/etc/profile, followed BY/ETC/BASH.BASHRC (if aBash shell), ~/.profile, and finally ~/.BASHRC is executed in that order.PATHcan set your pathenvironment variable to tell the shell where to

Linux Shell Script (i)

first, the initial knowledge of the scriptShell: A class of interpreter between the system kernel and the user.Scripts: A class of files that are executed in a preset order using a specific languagebatch, macro, and interpreter programsTo create a

Imperial Backup King (Empirebak) Universal cookie and pick-up shell

1. Fake Cookie Login system (in fact, this step is redundant, most users do not change the password, are the default 123456)Login successfully set 4 cookies, see CodefunctionLogin$lusername,$lpassword,$key,$lifetime=0) {Global $set _username,$set

Shell 13 Q Summary

We know that the hardware resources of the computer, such as disk, IO, memory are unified management by software, this kind of special software is often said operating system, windows in the underlying resource control based on the building of its

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

Let the echo output in the shell script color

There are two ways to bring the echo output color Define color variables in shell scripts, use ECHO-E to call variables When defining a variable, define the ECHO-E in the variable, and then output the variable Shell script that

Some shell command tricks in log processing

Some shell command tricks in log processingQuirks's log analysis, the future of the uncertainty of the day, the only thing that may also be a bit of a point is to manually handle a large number of logs. Sum up.The input to the log file is the text

Shell operators: Shell arithmetic operators, relational operators, Boolean operators, string operators, and so on

Bash supports many operators, including arithmetic operators, relational operators, Boolean operators, string operators, and file test operators.Native bash does not support simple math operations, but can be implemented with other commands, such as

Linux shell logical operators, logical expressions

The logical operators of the shell involve the following types, so as long as the appropriate choice, can solve our many complex judgments, to achieve a multiplier effect.First, the logical operator Logical Volume Label Express

Getting Started with Shell programming under Linux

Typically, we enter commands from the command line each time to get a response from the system. This is obviously inefficient when we need to enter commands one after the other and finally get the results. To achieve this, we usually use shell

(Linux shell) Chapter One-small trial sledgehammer (next)

Article Source: (Linux Shell) The first chapter--Small trial sledgehammer (next)1.6 Arrays and associative arrays1.6.1 Preparation KnowledgeBash supports both normal and associative arrays, and normal arrays can use integers only as an array index,

Mint/Ubuntu open the folder in the terminal/Shell

I know two methods: add the path (Nautilus |Pcmanfm dir_path) Method 1: Use Nautilus Install: sudo apt-Get intstall Nautilus Effect: Nautilus ~ Method 2: Use pcmanfm Installation: sudo apt-Get intstall pcmanfm Effect:Pcmanfm ~ However,

When the shell script is executed, the following error occurs: Command not found.

1. Delete the BOM and execute the following command under VI. : Set nobomb 2. cause: The so-called Bom is the byte order mark, which is a Unicode character that usually appears at the beginning of the text to identify the byte order

Learn a little shell every day -- tr

TR is used to delete control characters in a file or convert characters.Syntax: TR [-C/D/S/T] [set1] [set2]Set1: Character Set 1Set2: Character Set 2-C: complement. Use set2 to replace characters not included in set1.-D: delete all characters in set1

Shell basics 3

Linux Shell Programming 1. What is a bash shell variable? Shell variables can be divided into two types: Local variables and environment variables. Local variables are only available in the shell that creates them. Environment variables can be

Shell text filtering programming (6): loop judgment and array of awk

[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com] Like printf in the previous section, the cycle judgment of awk is similar to the cycle judgment Syntax of C language.1. While

The merger and acquisition of the three companies in Hong tu only gives an empty shell

There seems to be no odd deal in this Internet field. Recently, the merger and acquisition of hongtu sanbao has handled the transaction, which is somewhat "Incredible ". It seems understandable to be an Internet giant, but a traditional company with

Total Pages: 541 1 .... 110 111 112 113 114 .... 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.