SET command alias command purpose alias is used to set command alias command syntax setting alias: alias [alias] = [command name] example: alias rm = 'rm-I 'clear alias: unalias [alias] Clear all: unalias-a command instance [plain] #1. to view the number of aliases currently set, enter alias bixiaopeng @ bixiaopengtekiMacBook-Pro ~ $ Alias cdxm = 'CD/Volumes/warehouse/source-xiami/xiamimusic 'alias grep = 'grep -- color = alway' #2. delete an alias bixiaopeng @ bixiaopengtekiMacBook-Pro ~ $ Unalias cdxm bixiaopeng @ bixiaopengtekiMacBook-Pro ~ $ Alias grep = 'grep -- color = alway'/#3. Add an alias # modify. bash_profile bixiaopeng @ bixiaopengtekiMacBook-Pro ~ $ Vim. bash_profile # Add the following command to the file: alias cdxm = 'CD/Volumes/warehouse/source-xiami/xiamimusic '# Save and make the command take effect immediately: bixiaopeng @ bixiaopengtekiMacBook-Pro ~ $ Source. bash_profile # verify the command bixiaopeng @ bixiaopengtekiMacBook-Pro ~ $ Cdxm bixiaopeng @ bixiaopengtekiMacBook-Pro xiamimusic $ pwd/Volumes/warehouse/source-xiami/xiamimusic