I just got started with Linux development and recently encountered the problem of calling shell scripts in Java. I found a method suitable for cainiao-level development, as described below:
Add # In the first line of the shell script to be run
I often see 1> & 2 similar statements in Linux shell scripts. What does this mean?
In fact, both of them are Linux file descriptors. in Linux
0 indicates standard input.
1 indicates standard output
2 indicates error output
Another special one
14 noglob variable
Set noglob to stop the wildcard function, that is, the image symbol *? [] {}~ And so on. All of the special functions they represent will be ineffective. It only represents general characters. The following is an example:
1. Eval command-line
Command-new Roman; "> line is a common command line typed on the terminal.HoweverEvalThe result is shell.Scan it twice before executing the command line.For example:
New Roman; "> pipe =" |"
New Roman; "> eval ls $ pipe WC-l
New
VC's default font is Ms shell DLG (8), and Ms shell DLG itself is not a font (refer to: http://poxi.bokee.com/957883.html), just a font ing. Take Chinese Windows XP platform as an example, MS shell DLG (8) is (9.5 ). The ing font can be specified
CTRLKey bound_____________CTRL +-Jump to the start of the lineCTRL + B-Move back a charCTRL + c-Terminate the commandCTRL + d-Delete from under the cursorCTRL + E-Jump to the end of the lineCTRL + F-Move forward a charCTRL + k-Delete to EOLCTRL +
The third party is ours.
1. Path
The environment variable $ path does not wrap the line, and it looks very difficult. Path outputs the $ PATH Branch
Echo-e $ {path //:/'/N '}
2. classpath
Similar to path
Echo-e $ {classpath //:/'/N '}
3.
Is there the same command as NBTSTAT in Linux! View other information through IP: Host Name, Mac, etc.
You can use nmblookup-a ip address.
You can also use nbtscan.
ARP command: ARP iPad. Local or ARP 192.168.1.108 or ARP-A or ARP
VI search string:
What is shell? Shell is an interface for user interaction with the kernel. It can be used as a command interpreter. After a user inputs a command, shell will explain it and then send it to the kernel for execution,
After knowing what shell is, let
Author: Wang Shanshan,Hua Qing vision embedded college lecturer.
I. Differences and usage between system variables, user variables, and environment variables in shell:
Shell has the following basic types of variables:
1) environment variables
I. Io Devices
Io is the source and destination of the index data, which are called standard input, standard output, and standard error output.
Programs do not have to worry about device issues, such as files, terminals, and tape drives.
By default,
File Attribute operations in Lesson 5
File attributes include:
1) Permission
2) Owner
3) Group
5.1 file type
5.1.1 determine the file type
To determine the type of a file, you can add the-L option to LS. All types are listed.
For example:
$ LS-L/
Send mail using msmtp mutt Shell
1. Compile the software.
Software: http://sourceforge.net/projects/msmtp/files/msmtp/1.4.13/msmtp-1.4.13.tar.bz2/download
Tar jxvf msmtp-1.4.13.tar.bz2
./Configure -- prefix =/opt/msmtp
Make
Make install
2. Check
Monitor wwwa.applevb.com by using undisclosed Functions
In Windows, there is an undisclosed function shchangenotifyregister. You can add it to the system message monitoring chain in your window. This function is available in Delphi.Is defined as
By learning how to program using the bash scripting language, you can make the daily interaction of Linux more interesting and productive. You can also use the familiar and favorite standard UNIX concepts (such as pipelines and redirection ). In
Today, I am mainly going to have a deep understanding of the assembly language. If I want to decompile the language, this is not enough. Of course, this is not a day or two that can be successful. Continue to work hard.
I. How to distinguish the
Http://blog.csdn.net/wike163/article/details/7289586
Android has an interesting command calledDumpsysTo dump some system information. Even described on ADB manual IThink that some points shocould be reinforced. In order to get the complete status
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