查看当前系统环境变量
cat test2:
#!/bin/bash# display user information from the system.echo "User info for userid:$USER"echo UID:$UIDecho HOME:$HOME
添加执行权限:chmod u+x test2
运行:./test2 结果如下:
User info for userid:clarckUID:1000HOME:/home/clarck
本文共 230 字,大约阅读时间需要 1 分钟。
查看当前系统环境变量
cat test2:
#!/bin/bash# display user information from the system.echo "User info for userid:$USER"echo UID:$UIDecho HOME:$HOME
添加执行权限:chmod u+x test2
运行:./test2 结果如下:
User info for userid:clarckUID:1000HOME:/home/clarck
转载地址:http://vxevo.baihongyu.com/