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