The alias mechanism allows you to define new commands by letting you substitute any string for any command. The syntax of the alias builtin is

alias [name[=value]]


alias [name[ value]]

There are no SPACEs around the equal sign . If value contains SPACEs or TABs, you must enclose value between quotation marks. The alias mechanism is disabled for noninteractive shells (that is, shell scripts).

An alias cannot be recursive: The name of the alias ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.