Alias with command
Example:
Alias ggw= "g++-g-wall"
GGW is a custom alias, can be modified according to the settings, equal to the following is the specific meaning of the alias, in the terminal input GGW like when the input equals the following command
One thing must be noted: there can be no spaces on both sides of the equals sign
In addition, it is better to use double quotation marks for commands after equals
If you want to work permanently, it is recommended to write to the ~/.BASHRC or /etc/bashrc file directly in the last line.
Written in ~/.BASHRC is only valid for the current user, that is: no one else can use this alias
Written in ~/ETC/BASHRC is valid for any user, i.e.: Anyone can use this alias
After writing, you can use the source ~/.BASHRC or SOURCE/ECT/BASHRC to make the alias settings effective according to the file you are writing.
Fedora Settings Command alias