linux系统中unset清楚变量

1、

[root@centos79 test]# echo $a

[root@centos79 test]# a=10
[root@centos79 test]# echo $a
10
[root@centos79 test]# unset a  ## 清除变量a
[root@centos79 test]# echo $a

 

posted @ 2021-07-04 23:10  小鲨鱼2018  阅读(117)  评论(0编辑  收藏  举报