## 代理設置
根據你的操作系統選擇合適的代理配置:
### PowerShell
```powershell
$env:HTTPS_PROXY="http://127.0.0.1:1080" ; $env:HTTP_PROXY="http://127.0.0.1:1080"
```
### DOS
```dos
set http_proxy=http://127.0.0.1:1080 & set https_proxy=http://127.0.0.1:1080
```
### Linux
```bash
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 服務器可以提升網絡穩定性和速度。以下是常用 DNS 服務器的配置指南。
### 推薦資源
- [DNS大全](https://dnsdaquan.com/)
### 配置教程
按照以下步驟修改 Windows 系統中的 DNS 服務器地址:
1. 打開資源管理器,快捷鍵 `Win + E`。
2. 在地址欄中輸入 `控制面板\網絡和 Internet\網絡和共享中心` 并回車。
3. 點擊當前活動網絡旁邊的 "屬性"。
4. 選擇 **Internet 協議版本 4 (TCP/IPv4)**,然后點擊 "屬性"。
5. 在彈出的對話框中,選擇“使用下面的 DNS 服務器地址”,并輸入下列推薦的 DNS 地址。
### 常用 DNS 服務器列表
| 名稱 | 主 DNS 地址 | 備用 DNS 地址 |
| --------- | ------------------ | ------------------ |
| One DNS | 117.50.10.10 | 52.80.52.52 |
| 114 DNS | 114.114.114.114 | 114.114.115.115 |
## 命令行操作
### 內容過濾搜索
```bash
find /I "content"
```
### 續行符
- DOS: `^`
- PowerShell: `` ` ``
- Linux: `\`
### 檢測連通性
```bash
curl -i https://www.google.com
```
### 常用命令
- **關閉端口**
```bash
taskkill /f /t /im <imagename>
```
- **查看端口占用**
```bash
netstat -ano | findstr 1080
```
- **任務列表**
```bash
tasklist | findstr pid
```
- **復制桌面所有文件到指定磁盤**
```bash
xcopy . D:\backup /E/H/C/I
```
- **打開注冊表**
```bash
regedit
```
- **打開資源監視器**
```bash
resmon
```
- **打開設備管理器**
```bash
devmgmt.msc
```
- **刷新 DNS**
```bash
ipconfig /flushdns
```
- **顯示緩存 DNS 內容**
```bash
ipconfig /displaydns
```
### 創建目錄示例
以下命令用于創建常用的軟件、工作和數據目錄:
```powershell
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://cos.rustle.top/data/audio/notif/droplet/118.wav) |
| [鳥叫](https://cos.rustle.top/data/audio/notif/birdsong/118.wav) |
| [通知](https://cos.rustle.top/data/audio/notif/healthnotification/118.wav) |