The need for command-line arguments is useful when defining an alias. But the result of verifying the document is that the alias does not support passing command-line arguments at all. However, we can work around this problem by defining the function.
The code is as follows
Copy Code
Alias test= ' Test () {echo $}; Test[hadoop@nn06918
Both Root and alias can be defined in the location module, which is used to specify the true path of the requested resource, such as:
location/i/{ROOT/DATA/W3;}
When requesting http://foofish.net/i/top.gif this address, the real resource in the server is the/data/w3/i/top.gif file, noting that the real path is the value specified by root plus location specified value.
And the alias, like its name,
arbitrary strings). Associative arrays are useful in many operations.array_var=([one]=one-1 [two]=two-2 [three]=three-3)#这里把索引 0 1 2 分别替换成了one two three#当然也可以写成如下array_var[one]=one-1 Associative arrays are printed in the same way as normal array usages[[emailprotected] ~]# echo ${array_var[one]}one-1List array index values[[emailprotected] ~]# echo ${!array_var[*]}one two three注意:该方法也可以用于普通数组。AliasAliases provide a convenient way to do certain long-string commands. Eliminate unnecessary hass
copy, paste, rename one-step
# CP uu/tianlihong/- R
which command
# which CP
view the absolute path of the command CP (directory stored in the command)
# which shutdown
view the path stored by the shutdown command
MV Command
MV Cut (destination must be a folder)Mv-move (rename) files1. When the following target file exists, it is moving-> equivalent to "cut"2. When the following target file does not exist, it is renamedExamples of MV:
# mv tianlihong/ Xiejie/honghong
will Tianlih
Sometimes in our current shell, there is an alias command available, but when we sh script.sh or./script.sh, we find the error alias command not found problem.
What the hell is going on here? Because when you execute a new script with the current shell, the alias of the current shell is not automatically copied to the new shell that executes the script.sh scri
In the article "MyBatis Series (three)---configuration detailed properties and environments (MyBatis source article)" introduced the properties and environments, This article continues with one of the remaining configuration nodes: Typealiases. Typealiases node is mainly used to set aliases, in fact, this is a very useful feature, by configuring aliases, we do not have to specify the full package name, and can also take aliases.For example: we are using com.demo.entity. Userentity, we can direct
In a previous article, we mentioned that there can be a very convenient alias mechanism in PS, which is helpful for people familiar with other console shells to use ps. However, some of these problems are only
So far, let's talk about this topic in detail today.
1. Use aliases
In PS, you can create aliases for functions, cmdlets, or executable files, and then use aliases instead of original names in any command. (Here is an irrelevant topic. Some chil
This is a creation in
Article, where the information may have evolved or changed.
This article for the original article, reprint annotated source, welcome to sweep the code to pay attention flysnow_org to the public number or website http://www.flysnow.org/, the first time to see the following wonderful articles. Feel good, and share to friends Circle, thank you for your support.
Beijing Time 2017.08.25,go1.9 official version released. Go1.9 through 2 beta, months, finally, released th
The reason for this problem is more complex, with 4 main conditions: Using spring boot and using the MAVEN plug-in of Spring boot to package the use of MyBatis (the current 3.3.1 version still has this problem) Configure domain configuration in a separate jar package (for example, maven multiple modules) using Sqlsessionfactorybean.settypealiasespackage to specify packet scanning domain
Then you'll find that when you use idea directly to execute the main method at development time, everything wo
Often see the author of the Linux software in the introduction of the installation software, in front of the command with a backslash, do not understand the meaning of the data later to know that this is to cancel the call of the alias, using the original command.Alias is a shell built-in command that can be used to set the alias of a command, such as using the alias
Linux Next alias command specific explanation
Description of Use
Sets the alias of the command. Assuming that the command is too long and not consistent with the user's habits in a Linux system, we can assign an alias to it.Although it is possible to establish a "link" to the command
Resolves a problem with long file names, but for commands w
In multi-person collaborative development, GIT is generally used for code management. Git has some commands such as Git pull, git push, and so on, and these commands can set alias, which is abbreviated. such as: git pull is git pl, git push is git PS. Can be modified according to personal habits.To modify aliases, alias steps are as follows:1, go to the root directory$ cd2. View the files under the root dir
Alias is to define aliases, such as my current Web document directory is located under/www/html/, but there are some content stored in/www/static//at this time if you want users to be able to access the content under/www/static/. To define the alias, the code is as follows:
alias/static/"/www/static/"
This allows the client to access the content under/www/static
Every derived table must has its own aliasIt means that each derived table must have an alias of its own.This error typically occurs when querying multiple tables.Because the result of the subquery when the query is nested is a derived table for the previous level of the query, so the result of the subquery must have an aliasChange the MySQL statement to: SELECT COUNT (*) from (SELECT * from ...) as total;The problem is solved, although it only adds a
Controlfile still error, errors are as follows:Sql> Show parameter conver;NAME TYPE VALUE------------------------------------ ----------- ------------------------------Db_file_name_convert String/data, +data/orcl/datafileLog_file_name_convert String/data, +data/orcl/onlinelog(in the actual process, these two parameters are so configured that there is no problem ...)sql> ALTER DATABASE create standby Controlfile as '/tmp/a.ctl ' reuse;ALTER DATABASE create standby Controlfile as '/tmp/a.ctl ' re
Has been very strange, do not know why SQL alias how to use, last saw thinkphp in the explanation, why the database in use sometimes like to change the name of the use,Because yesterday to participate in the company's database development Engineer's written test, today to review SQL, see the role of SQL Alias, the following is his/her role in the use of AliasTo know when he used it was better.Let's say we h
In the previous section, we described how to retrieve all the available commands in the current shell and PowerShell, and for the specified command to view their syntax information, you can get help information for the specified command, including getting the online Help topic, detailed content timestamp here.In this section, you mainly describe the alias for PowerShell, which mainly includes the following.
Familiarize yourself with the commo
CentOS in the alias command to explain
Alias command
Function Description: We are in the management of the system must have some we often fixed use, but also very long command. Then we can give these long series of commands an alias. This long list of commands can then be replaced directly with aliases. There are already some default command aliases in the syst
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.