linux使用shell的基本功能

 1).設置局部變量,就能在shell進程的任何地方使用它了,如果啓動一個新的進程或者退出了子進程,變量就不起作用了 ~$ test=testing ~$ echo $test testing ~$ exit ~$ echo $test ~$ 2).設置全局變量。   創建全局變量的方法是先創建一個局部環境變量,然後用export命令讓它變成 全局 ~$ test=testing ~$ echo
相關文章
相關標籤/搜索