Uptime command:-* Use the uptime command to get host run time and query Linux system load information. The information is displayed in the following order: Now time, the system has elapsed time, the current number of landing users, the system in the
DF command
Disk Management
The DF command is used to display the available disk space on a disk partition. The default display unit is KB. You can use this command to get how much space the hard disk is occupied and how much space is left.
Previously used Ubuntu, the installation of uninstall software is basically using apt-get this very simple, and the process of software dependencies will automatically help us deal with, similar to the fool-like installation. In addition, in the
First, topsy variables and environment variables
Variables are an essential part of any programming language and are used to hold variables of various types. Scripting languages are mostly weakly typed languages (dynamic languages), which means
Today, the company colleagues in a server on the other two servers with the computer room for file transfer, the two server files to store the same address, the password and key is consistent (our company in security to do a bit of a pervert), in
Shell Script of Linux Basics
1 Shell sciptA program written in the instruction and basic program design structure to complete a complex process
1.1 Program Writing
Copy Code code as follows:
#!/bin/bash
# program:
# This
arrays, as a special kind of data structure, have a place in any programming language, and of course bash shells are no exception. This article makes a small summary of the shell array.Here we only discuss the case of one-dimensional arrays, about
The request execution time period is usually referred to as "appy times". Refers to the time period when the system VM stabilizes to the VxDs and ring-3 level application software (especially the 16-bit application). For example, at a specific time
DNS load balancing is the first implementation of load balancing technology. Configuring the same name for multiple addresses in a DNS configuration file is configured with multiple A records pointing to a different IP, and the client will randomly
When the number of TCP connections is very large, the current internal IP, the connection of the external IP is counted[[email protected] account_tcp]# cat account_tcp.sh #!/bin/bash# Statistics the current network connection situation Netstat -na |
The shell itself is a program written in C, which is a bridge for users to use Unix/linux, and most of their work is done through the shell. The shell is both a command language and a programming language. As a command language, it interprets and
The Unix command obtains input from the standard input device (stdin) By default, outputting the result to the standard output device (STDOUT) display. In general, the standard input device is the keyboard, the standard output device is the terminal,
1. Basic Regular Expressions1.1 regular expressions and wildcard characters(1) A regular expression is used to match a string that matches a condition in a file , and a regular contains a match . grep, awk, sed, and other commands can support
The shell is a programming language and a service that accesses the operating system kernel.The types of shell that are common to Linux are:Bourne Shell (/usr/bin/sh or/bin/sh)Bourne Again Shell (/bin/bash)C Shell (/USR/BIN/CSH)K Shell (/usr/bin/ksh)
1, reading parameters: Positional parameter variable is the standard number: $ $ is the program name, "$" is the first parameter, and the second argument is ... 1 #!/bin/bash 2 # using one command line parameter 3 4 factorial=1 5 for
The main purpose of the script is to practice capturing signals in a Linux bash script, by practicing the use of functions, and by terminating a running program, subsequent processing of files opened by the program, and so on!Scripting Features:Ping
This happens because the file line break you are working with is "\ r \ n" in DOS format.You can use the Cat-v file name to see if the newline character is, and if it is, the end of the line will be ^m"\ n" needs to be converted into Linux/unix
SED command basic usageSED is a non-interactive text editor that edits text files and standard input, which can be input from keyboard input, file redirection, strings, variables, text from pipelines, and so on.Sed reads data from one line of text
The shell can recognize 4 different types of cited symbols: single quote character ' double quote character ' backslash character \ anti-quote character '
1. Single quotation mark (')# grep Susan PhonebookSusan Goldberg 403-212-4921Susan Topple 21
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