- 打开 PowerShell 窗口
- 输入命令
Remove-Item (Get-PSReadlineOption).HistorySavePath - 关闭 PowerShell 窗口,然后重新打开 PowerShell 窗口。
- 此时发现已经清空 PowerShell 会话命令历史记录。
Windows10 清除 PowerShell 会话命令历史记录的方法
最新推荐文章于 2025-05-24 09:09:11 发布
Remove-Item (Get-PSReadlineOption).HistorySavePath
被折叠的 条评论
为什么被折叠?
