惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
博客园 - Franky
J
Java Code Geeks
V
Visual Studio Blog
G
Google Developers Blog
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
博客园 - 【当耐特】
IT之家
IT之家
I
InfoQ
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler

PowerShell

求助在 Windows 桌面运行某个程序的多个实例并在整个穿够屏幕布满的 powershell 脚本, GPT 生成的也无法平铺位置随机的。 是我孤陋寡闻了吗? powershell 里面其实支持顺斜杠, tab 补全也能改成顺斜杠 请教 win11 powershell 设置别名的问题 如何确定 powershell 在终端输出的信息是 stdout 还是 stderr? ps1 文件如何双击以管理员身份运行 V2EX ps 无法显示 bash 命令的完整参数,是 bug 吗? powershell setx 变量后无法自身得到变量值 请教, powershell 脚本中使用中文,脚本文本存储的是 utf-8,运行后中文就是乱码。 oh-my-posh 导致 powershell 启动缓慢 powershell 管道问题 如何在打开 powershell 脚本的时候, cd 到脚本所在目录 如何让 powershell 输出的 txt 日志为 unix lf 格式 这个 powershell "比对”命令能优化吗? powershell 运行 ps 文件的时候,如何支持带空格的路径 cmd 输出日志的时候,如何不写入重复日志 请教-关于 PowerShell 的使用场景问题——竞赛,编程挑战,运维需求在哪里找 Windows 运行 ffmpeg 批量脚本的时候,如何在不中断的情况下限制 CPU 使用率 cmd 控制台显示输出日志过滤 powershell7, 执行速度和自动补全速度都慢的令我抓狂 请教一下.ps1 运行时如何让 powerShell 同时显示所运行命令的内容 有什么不错的 powershell 书籍吗? PowerShell 是否可以实现类似 expect 的功能? PowerShell 启动慢 现在 PowerShell 是不是没有什么用? PowerShell 竟然强悍如斯! 请问如何使用 powershell 禁用/启用设备? 逐浪 CMSv8.2 发布-集成 Node 与 Vue 脚手架和 PowerShell 支持的新一代网站管理系统 Powershell 的管道兼容性 powershell 的独门秘技之气运“丹田”
求助:如何阻止 Powershell 生成 tmp 文件
KIMI360 · 2024-02-08 · via PowerShell

最近在终端中使用 powershell 非常卡,加载慢,输入命令慢,返回也慢。研究了一下发现%TEMP%下存在大量 PS 开头的.tmp 文件,删除后 powershell 就恢复正常了。

想在 powershell 开始前使用命令删除这些 tmp 文件,结果执行命令时一边删除一边又生成了同样多的 tmp 文件

gci $env:TEMP\PS*.tmp -File | % { ri $_.FullName -Force }

那么现在问题来了,如何阻止 powershell 生成这些文件呢