How to make the user-defined command alias for Linux permanently effective.
The alias (Chinese called "Alias") allows you to redefine the Shell command in Linux with a shorter name, simplifying the command line input. If you often deal with the
alias(Chinese is called"aliases"allows a shorter name to be used to redefineLinuxin theShellcommand, which simplifies the input of the command line. If often withCLIdeal with, then usealiasnot only will save time, but also can improve efficiency,
AliasCommand: AliasFeature Description: Set the alias of the commandSyntax: alias [command]= ' other commands 'Cases:[[email protected] data]# aliasAlias cp= ' Cp-i 'Alias l.= ' ls-d. *--color=auto 'Alias ll= ' Ls-l--color=auto 'Alias ls= '
The command alias function of a Linux system the command alias function will use a large number of commands during the management and maintenance of the Linux system, and some long commands or usage are often used, repeated and frequent input of a
Linux alias command details, linuxalias command detailsDetailed description of alias commands in linux
Description
Set the alias of the command. In linux, if the command is too long and does not conform to the user's habits, you can specify an
Recently, a Django site needs to frequently access the varwwwsitemycitsm Directory. every time you have to repeat the input string, you have recently created a Django site, the/var/www/site/mycitsm/directory needs to be accessed frequently. it is
11, Alias/unaliasYou can use the alias command to define an alias for a command, and if there are spaces in the command, you need to use double quotation marks (such as spaces between commands and options), and use the Unalias command when the user
In Linux, you often need to switch directories, Which is troublesome. Then you think of the alias command, which can be used to convert a long command into a short command that we like. sort out the usage of this command for future
Article title: Linux tutorial-alias. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Another way to make work
In the process of managing and maintaining a Linux system, a large number of commands will be used, and some long commands or usages are often used, and it is undesirable to repeatedly and frequently enter a very long command or usage. This process
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.