提交
This commit is contained in:
parent
c605823567
commit
4432c47524
@ -1416,6 +1416,36 @@ UUID=0EAB-5879 /boot/efi vfat umask=0077,shortname=win
|
||||
systemctl daemon-reload
|
||||
```
|
||||
|
||||
### NTFS -> ext4
|
||||
|
||||
确认目标分区
|
||||
|
||||
扎到要格式化的分区名称(例如 `/dev/sda1`)。
|
||||
|
||||
```bash
|
||||
lsblk -f
|
||||
```
|
||||
|
||||
卸载分区
|
||||
|
||||
如果该分区已经挂载(MOUNTPOINT 列有路径),必须先将其卸载才能格式化。
|
||||
|
||||
```bash
|
||||
sudo umount /dev/sda1
|
||||
```
|
||||
|
||||
执行格式化命令
|
||||
|
||||
```bash
|
||||
sudo mkfs.ext4 /dev/sda1
|
||||
```
|
||||
|
||||
验证结果
|
||||
|
||||
```bash
|
||||
lsblk -f
|
||||
```
|
||||
|
||||
## 挂载卷
|
||||
|
||||
### Windows 网络共享位置
|
||||
|
||||
@ -263,3 +263,7 @@ location = "proxy.vvvv.ee"
|
||||
EOF
|
||||
```
|
||||
|
||||
# Docker 迁移
|
||||
|
||||
## Docker Desktop
|
||||
|
||||
|
||||
@ -88,6 +88,51 @@ notepad $Profile
|
||||
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/montys.omp.json" | Invoke-Expression
|
||||
```
|
||||
|
||||
## 扩展模块
|
||||
|
||||
### PowerShellGet
|
||||
|
||||
> [PowerShellGet](https://github.com/PowerShell/PowerShellGet) 是 Windows 平台上的包管理器,主要用于管理 PowerShell 模块,但也支持其他类型的包。
|
||||
|
||||
以系统管理员权限打开**PowerShell**终端,执行以下命令:
|
||||
|
||||
```powershell
|
||||
Install-Module -Name PowerShellGet -Force
|
||||
```
|
||||
|
||||
### [posh-git](https://github.com/dahlbyk/posh-git)
|
||||
|
||||
> [posh-git](https://github.com/dahlbyk/posh-git)是一款用于 Windows 系统的 PowerShell 扩展模块,它主要为 Git 提供了更加丰富且人性化的命令行界面体验。
|
||||
|
||||
以系统管理员权限打开**PowerShell**终端,执行以下命令:
|
||||
|
||||
```powershell
|
||||
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
|
||||
```
|
||||
|
||||
### [PSReadLine](https://github.com/PowerShell/PSReadLine)
|
||||
|
||||
> [PSReadLine](https://github.com/PowerShell/PSReadLine)用于增强命令行编辑体验的模块,提供语法高亮/命令预测/历史记录管理以及提供了丰富的快捷键和编辑命令。
|
||||
|
||||
以系统管理员权限打开**PowerShell**终端,执行以下命令:
|
||||
|
||||
```powershell
|
||||
Install-Module PSReadLine -Force
|
||||
```
|
||||
|
||||
## 编辑oh-my-posh配置文件
|
||||
|
||||
打开**PowerShell**终端,执行以下命令编辑配置文件 `code $PROFILE`:
|
||||
|
||||
```powershell
|
||||
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete #Tab键会出现自动补全菜单
|
||||
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
|
||||
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward #上下方向键箭头,搜索历史中进行自动补全
|
||||
|
||||
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/jandedobbeleer.omp.json" | Invoke-Expression
|
||||
Import-Module posh-git # git的自动补全
|
||||
```
|
||||
|
||||
# 文件
|
||||
|
||||
## 新建文件
|
||||
|
||||
@ -133,3 +133,5 @@ irm https://massgrave.dev/get | iex
|
||||
- `-o"D:"`: 这是指定**目标解压目录**。所有从压缩包中解压出来的内容都会放到这个目录下。
|
||||
- **注意:** `-o` 后面直接跟目标文件夹的完整路径,不带 `*`。
|
||||
- `"source\repos\ruoyi-ai\*"`: 这是**压缩包内部想要解压的目录名称**。请确保这个名称与压缩包内的实际目录名完全一致(大小写敏感)。
|
||||
|
||||
# Windows Server 2019
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user