## **Getting Started**
### **代理**
- **powershell**
```
$env:HTTPS_PROXY="http://127.0.0.1:1080" ; $env:HTTP_PROXY="http://127.0.0.1:1080"
```
- **dos**
```
set http_proxy=http://127.0.0.1:1080 & set https_proxy=http://127.0.0.1:1080
```
- **linux**
```
export http_proxy="http://127.0.0.1:1080" && export https_proxy="http://127.0.0.1:1080"
```
### **常用目录**
| 目录名称 | 路径 |
| ------------ | ------------------------------------------------------------ |
| 开机启动目录 | C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp |
| hosts 目录 | C:\Windows\System32\drivers\etc |
| 桌面 | %USERPROFILE%\Desktop |
| 文档 | %USERPROFILE%\Documents |
| 下载 | %USERPROFILE%\Downloads |
### **dns**
- dns大全:https://dnsdaquan.com/
- 修改教程
1. 打开资源管理器`快捷键Win+E`,在资源管理器地址栏上输入`控制面板\网络和 Internet\网络和共享中心`回车
2. 点击活动网络的属性,打开Internet协议版本4(TCP/IPv4),使用下面的dns服务器地址
| 名称 | 服务地址1 | 服务地址2 |
| ------- | --------------- | --------------- |
| one dns | 117.50.10.10 | 52.80.52.52 |
| 114 dns | 114.114.114.114 | 114.114.115.115 |
### **dos内容过滤搜索**
```bash
find /I "content"
```
### **续行符**
- dos `^`
- powershell `
- linux `\`
### **检测连通性**
```
curl -i https://www.google.com
```
### **常用命令行**
- **关闭端口**
> taskkill /f <force> /t <tree> /im `<imagename>` <programname>.exe
```
netstat -ano | findstr 1080
tasklist | findstr pid
taskkill /f /t /im chrome.exe
```
- **复制桌面所有文件到指定磁盘**
```
xcopy . D:\backup /E/H/C/I
```
- **注册表**
```
regedit
```
- **资源监视器**
```
resmon、perfmon
```
- **设备管理**
```
devmgmt.msc
```
- **刷新dns**
```
ipconfig /flushdns
```
- **显示缓存dns内容**
```
ipconfig /displaydns
```
### **创建目录**
> 软件目录、工作目录、数据目录
```
New-Item -Type directory -Path `
D:\apps\dev\bin, `
D:\apps\reqd, `
D:\apps\tools, `
D:\data\cache, `
D:\data\cache\spotify, `
D:\data\cache\xiaoji, `
D:\data\config, `
D:\data\mvn, `
D:\data\pan, `
D:\data\pe, `
D:\data\pe\isos, `
D:\data\person, `
D:\data\repo, `
D:\data\repo\go, `
D:\data\repo\maven, `
D:\data\wsl-data, `
D:\ws\data, `
D:\ws\repo, `
D:\ws\repo\aliyun, `
D:\ws\repo\gitee, `
D:\ws\repo\github, `
D:\ws\repo\gitlab, `
D:\ws\repo\other
```
### **其他配置**
**微信通知声**
> 编辑工具:**ResourceHacker.exe** | 编辑内容:**WeChatResource.dll**
| 下载地址 |
| ---|
| [水滴](https://up.cdnxin.top/data/audio/notif/droplet/118.wav) |
| [鸟叫 ](https://up.cdnxin.top/data/audio/notif/birdsong/118.wav) |
| [通知](https://up.cdnxin.top/data/audio/notif/healthnotification/118.wav) |