分类: linux

1 篇文章

Windows PowerShell禁用历史记录
当前 PowerShell 主机应用程序中使用以下命令为当前用户创建配置文件 使用“以管理员身份运行”选项启动 PowerShell,创建所有用户配置文件 if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force } 执行完成会给出配置文件地址:…