Shell Script Raiders (learning notes)--1.8 aliases

Source: Internet
Author: User
Tags aliases

LL is the alias of Ls-l. You can customize aliases to accommodate certain options in place of certain commands, or you can define aliases to combine multiple commands. For example, define an RM alias RMB to automatically back up to the directory when it deletes a content.

[email protected] tmp]# alias rmb= ' cp-a [email protected]/tmp/backup/&& rm-rf [email protected] '

Alias can be used to make aliases temporarily effective, long-term effective to write aliases to/etc/profile or ~/.bash_profile or ~/.BASHRC, the first one for all users, the next two for the corresponding user. Remember to use source to re-tune these configuration files after you modify them.

Use Unalias to temporarily cancel aliases.

If you want to use the original command after you define an alias, you can delete the alias or use an absolute path or use the escape character to restore the command.

Shell Script Raiders (learning notes)--1.8 aliases

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.