1、創建別名命令
[root@localhost test]# pwd /home/test [root@localhost test]# abc bash: abc: command not found... [root@localhost test]# alias abc=pwd ## 創建別名命令, abc等價於pwd命令 [root@localhost test]# abc /home/test
2、查看別名命令
[root@localhost test]# abc /home/test [root@localhost test]# alias abc ## 查看別名命令 alias abc='pwd'
3、取消別名命令
[root@localhost test]# abc ## abc的別名命令為pwd /home/test [root@localhost test]# unalias abc ## 取消abc的別名命令 [root@localhost test]# abc bash: abc: command not found...