-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
df -h, 查看磁盘使用情况,并格式化输出 | ||
du -d 1 -h, 查看第一层目录的文件夹大小,并格式化输出 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
vagrant init [name [url]], 在当前文件夹初始化 Vagrantfile | ||
vagrant init centos/7, 在当前文件夹初始化 centos7 | ||
vagrant up , 启动虚拟机" | ||
vagrant ssh , 登陆虚拟机" | ||
vagrant halt , 登陆虚拟机" | ||
vagrant destroy [name|id] , 销毁虚拟机" | ||
vagrant destroy -f , 销毁虚拟机,并对询问回答 yes" | ||
vagrant package , 打包 box" | ||
vagrant package --ouput <box-name> , 打包 box,并指定包名" | ||
vagrant status , 当前虚拟机状态 | ||
vagrant reload , 重新加载虚拟机配置 | ||
vagrant global-status, 查看所有虚拟机状态 | ||
vagrant box list, 查看所有 box 列表 | ||
vagrant box remove <box-name>, 删除 box | ||
vagrant box remove <box-name> --box-version <version>, 删除 box,并指定版本 | ||
vagrant box update , 更新 box 版本" | ||
vagrant box update --box <box-name>, 更新 box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters