Linux Learning Note 6_ Basic command Review 1 (alias Unalias sourse)

Source: Internet
Author: User
Tags call back

Alias

Unalias


Alias view the current command's macro definition status

Unalias [command] cancels the macro definition of the commands (memory operations, non-modified macro definition source files, restart invalidation)


To use the original command with the renamed command, add the "\" backslash symbol before the command, or use the absolute address of the command to invoke it.


Cases:

CP command, when there is a file with the same name at the destination address, prompts whether to overwrite paste

Use the alias command to learn that the CP command was renamed "Cp-i (interactive interactive )"

If you do not modify the alias file (Unalias or modify the source file), you can use the "\CP" or "/BIN/CP" command without parameters.


Alias's configuration file in:

/etc/profile Global Effect

~/.BASHRC the current user is in effect


If you want to recover after using the Unalias command to cancel the rename (only memory modification), you can overload the configuration file with the "sourse" command:

Sourse ~/.BASHRC


Small knowledge:

Can't you tell the pros and cons??

That's because you didn't understand it from an English perspective.

Slash slash (forward slash '/') and backslash (backslash ' \ ')

/: Forward to call forward, so called forward slash

\: Backward call back, so call backward slash


Linux Learning Note 6_ Basic command Review 1 (alias Unalias sourse)

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.