常用基础知识参考汇总
2020-07-01 本文已影响0人
UnilinU
知识列表
1. 网络配置
2. 开机自运行脚本
Ubuntu
http://jackqdyulei.github.io/2016/03/06/linux-auto-script/
Windows 10
- 批处理
.bat
文件语法
@
注释输出;rem
注释一行
start
启动一个单独的窗口以运行指定的程序或命令。适应于执行多个无需终止的程序,比如服务器。
call
从批处理程序调用另一个批处理程序,调用后返回调用程序执行后续脚本。- PowerShell
.ps1
文件语法
类似于unix
3. 环境变量设置
Windows 10
4. ProgLang&Util变量设置
Golang env设置
GO111MODULE
设置
go env -w GO1111MODULE=auto
GOPROXY
设置
go env -w GOPROXY=https://goproxy.io,direct
https://goproxy.io/git config
设置
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
5. 语法杂项
- URL结构
[scheme:]//[user[:password]@]host[:port][/path][?query][#fragment]
eg: http://user:pass@example.com:8042/over/there?name=ferret#nose
6. USB安装系统
7. Vi/Vim使用
$ vimtutor