1、配置
在搭建java、go等开发环境时,经常需要配置环境变量,常用到/etc/profile、bash_profile,其中/etc/profile中所有用户共有,而bash_profile文件适用指定用户。
2、基本信息查询
- 内存信息查询
free -m
- 压缩与解压缩
tar -zcvf temp.tar.gz directory_to_compress
tar -zxvf temp.tar.gz
其中,zcvf中c表示压缩命令,x表示解压命令。
- 的的
在搭建java、go等开发环境时,经常需要配置环境变量,常用到/etc/profile、bash_profile,其中/etc/profile中所有用户共有,而bash_profile文件适用指定用户。
free -m
tar -zcvf temp.tar.gz directory_to_compress
tar -zxvf temp.tar.gz
其中,zcvf中c表示压缩命令,x表示解压命令。