In Linux, shell is a commonly used tool. In Red Hat Linux, we usually use B shell or bash. In Shell, we always want to set some environment variables or other initialization operations when opening this shell. But how can we do this? Although we can
The following is an example of starting a hypertable database by executing shell commands in Java.
/** * Start the Database Service * @ return */ Public String startup () { // The command is dead. string commands = "HT start all-servers
To connect qtpwith testdirector8.0, I installed the tdpluginssetup.exe plug-in. I didn't expect it to be incompatible with VSS. When VSS is started, an error prompt box is displayed, saying "Microsoft Windows User Shell has a problem and is about to
Sometimes a task runs for a long time and needs to be run in the background. Otherwise, the task will be terminated after the console is launched. This article describes how to run the task in the background.
For example, for a shell script,
1. The method for modifying the language family is:
[Root @ test root] # lang = en (specify other syntaxes as needed, such as C)
[Root @ test root] # export Lang
Linux VI deletes all specified characters
Press ESC to return the command
Shell statement usage tips 1. Are you anxious to call the system "create shortcuts" Wizard to create shortcuts that VB does not support? Although you can call the fcreateshelllink function in vb5stkit. dll,
But it is designed for the installer. The
Speaking of function calling, I believe everyone will not be unfamiliar with it. However, for me new to shell, the function calling method in shell is a bit difficult for me and I have taken a lot of detours, because a "natural" error occurred while
1. ECHO Displays a line of strings to the standard output.
0) some details of the ECHO command are different in System V, BSD, and Linux like-Unix systems, which are mainly Linux systems.
1) usage: Echo [-E] [-N] string
① String: string is the
Basic Format:Test expression
Expression is the expression constructed by the test command.Expression is any valid expression that can be understood by the test command. The simplified format is the most common format that readers may refer.Return
Q: How can I change the shell display mode to [complete working directory of username @ host] $ to [last working directory of username @ host] $
Solution: Add export PS1 = '[/u @/h/W]/$' to. bashrc'
Note:
In Linux, there are two variables for the
1 shell $! , $ ?, $, $ @
• $ N $1 the first parameter, $2 the second...• $ # The number of command-line parameters.• $0 the name of current program.• $? Last Command or function's return value.• $ The program's PID.• $! Last program's PID.• $ @
The lock mechanism allows a specific shell script to run only one instance at a time. Specifically, the script instance for obtaining the lock can continue to execute the code in the critical section. If no lock instance is obtained, you can only
This article is the fourth chapter of Learning the bash Shell 3rd Edition, Basic Shell Programming, but we will not limit it to this.
Run the shell script program
A script containing shell commands is a shell program, such as. bash_profile. We can
This article Reprinted from http://blog.chinaunix.net/uid-22566367-id-381955.html
I have to say that the global variables in shell are all disgusting guys, especially this guy ---- IFS, Which is disgusting and almost fooled by it. So please record
Chapter 3 shell Input and Output3.1.1 echoThe echo command can display text lines or variables, or input strings to files.Echo [Option] string--E parse escape characters--N: Do not use line breaks. By default, line breaks are used in Linux.-Escape
Rename
Rename ABC abc0 * ABC *
Replaces the first ABC in the file matching * ABC * in the current folder with abc0.
The second variable name. The second access count variable reads $0 $1 $2 and so on.
1 #! /Bin/bash2 3 typeset param_num =$ #4
Variables and strings
Bash shell does not have the so-called "Data Form" unless the built-in declare is used to specify the variable type. In Bash shell, there is only one data type: A string consisting of Characters
Use it without having to go
Document directory
This article describes how to compile a shell script based on a large number of instances.
Why shell programming?
In Linux, although there are a variety of graphical interface tools, ghost is still a very flexible tool.
1. display all Android platforms in the system:
Android list targets
2. Display All AVD (simulators) in the system ):
Android list avd
3. Create an AVD (simulator ):
Android create avd -- name -- target Platform ID
4. Start the
Windows Shell programming, that is, Windows Shell programming. The resource manager and the entire desktop are a Shell.
We know that in win32, a file system is organized in the form of a shell namespace. Every object in the shell namespace (Note)
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.