Preface: Do not ask why you need to configure the network in Shell (command line) when the desktop system is popular. If you have any questions, please stop reading this article.
$ Iwlist wlan0 scan # list valid Wireless Networks$
ArticleDirectory
Cat
Chgrp
Chmod
Chown
Copyfromlocal
Copytolocal
Count
CP
Du
DUS
Expunge
Get
Getmerge
Ls
LSR
Mkdir
Movefromlocal
Movetolocal
MV
Put
Rm
RMR
Setrep
Stat
From: http:// OS .51cto.com/art/200912/165925_1.htm
Location Parameter $1, $2 ,..., $ N, $ # represents the number of parameters in the command line, $0 represents the Script Name, the first parameter represents $1, the second parameter represents $2
One of the most depressing problems in code debugging is that once Erlang shell closes the command history that has just been entered, it will be lost. It is convenient to maintain the history of an input command; the following project can help us
By default, operations in Shell programs are string operations, and unexpected answers may be obtained when you want to run mathematical operators:
Var = 1Var = $ var + 1Echo $ VaROutput:1 + 1
From this example, we can see that the shell string
In the bash shell series, when talking about variables, we first talk about the functions and modifications of environment variables, and then continue to talk about the use of historical commands. Next, let's talk about the important concept of
Example
Ls-L> out. File 2> & 1 &
Explanation:Ls-L> out. File // redirects ls output to file out. File
2> & 1 // in shell, the file descriptor is usually stdin, stdout, stderr, I .e., 0, 1, 2. It can be seen that it uses LS-L> out. the error
Button action
CTRL + a move to the beginning of the line
CTRL + e move to the end of the row
CTRL + B move the cursor one character to the left
CTRL + F move the cursor one character to the right
CTRL + C terminate the processCTRL + z pending
11.5
Dangdang ~~~ Class ~~~ Pai_^
As mentioned above: $ cat ; after file, the results of files with original content are washed away ﹗
It is not difficult to understand this concept. This is just a matter of priority:
* In Io redirection, The stdout
Read files by row:Java code
While read myline
Do
Echo $ myline
Done
This program is to put the input file/Etc/passwdOne output.
If we only need to output username and home directory, We need to parse the file.Each row is roughly as follows,
Classic sorting algorithm-shell sort
Shell sort is based onInsert sortIs also divided into two parts,
Part 1: Introduction to Hill sorting
The second part is how to select keywords. Selecting keywords is the key to Hill sorting.
Introduction to the
/** Shellsort. CPP ** created on: 2013-6-1 * Author: Jue */# include Using STD: cout; Using STD: Endl; void swap (Int &, int & B) {int temp = A; A = B; B = temp;} void shellsort (INT datas [], int length) {int offset = length/2 + 1; while (Offset> =
Shell Insert sortingBasic Thinking of hill sorting
Basic Idea:
Take an integer D1 smaller than N as the first increment, and divide all records of the file into D1 groups. All records whose distance is a multiple of DL are placed in the same group.
I have been busy with projects recently and encountered a very tangled problem in the process. Other shell scripts can be called only after the shell script training database is executed. Here we will summarize and share it with you.
The script is
The first shell script program. VI create a file test. SH and grant the execution permission
#!/bin/shecho 'hello word !'
Execution result: Hello word!
Shell script structure #! Start with/bin/sh, and next to the line feed is the program body.
Functions in shell are similar to methods in Java. script code is placed in the function and can be run anywhere to reduce a large amount of repeated code.
Understanding Shell functions involves the following aspects: function creation, function
Text and graphics interfaces
Dialog is a tool used to create a dialog box in shell script. You can use dialog to create different information and problem windows to facilitate the script.
Dialog creates a text interface in terminal mode, and a tool
Linux ShellStrong Regular ExpressionsGrep
Linux grep commandUse 'grep' to search for text filesIf you want to find a string in several text files, you can use the 'grep' command. 'Grep' searches for the specified string in the text.Suppose you are
I. Shell VariablesIt mainly includes local variables and environment variables.
1. Local variable -- Used in the script currently running by the user1)Define local variablesFormat: variable-name = valueExample: [root @ jike1/root] # LOCALTEST =
One of the most useful commands for me to use WinDGB is the. shell Command.
Debugging Tools For Windows Help file:
The. shell Command can load a shell process and redirect its output to the debugger, or redirect it to a specified file.
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