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

推荐订阅源

量子位
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
Cyberwarzone
Cyberwarzone
D
Docker
The Hacker News
The Hacker News
C
CERT Recently Published Vulnerability Notes
Vercel News
Vercel News
Project Zero
Project Zero
S
Schneier on Security
aimingoo的专栏
aimingoo的专栏
I
Intezer
腾讯CDC
M
MIT News - Artificial intelligence
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Vulnerabilities – Threatpost
G
Google Developers Blog
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
Arctic Wolf
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
Recent Announcements
Recent Announcements
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
T
Threatpost
Latest news
Latest news
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
The GitHub Blog
The GitHub Blog
T
Tor Project blog
P
Proofpoint News Feed

PowerShell

求助在 Windows 桌面运行某个程序的多个实例并在整个穿够屏幕布满的 powershell 脚本, GPT 生成的也无法平铺位置随机的。 - V2EX 是我孤陋寡闻了吗? powershell 里面其实支持顺斜杠, tab 补全也能改成顺斜杠 - V2EX 求助:如何阻止 Powershell 生成 tmp 文件 请教 win11 powershell 设置别名的问题 - V2EX 如何确定 powershell 在终端输出的信息是 stdout 还是 stderr? - V2EX ps1 文件如何双击以管理员身份运行 - V2EX V2EX ps 无法显示 bash 命令的完整参数,是 bug 吗? - V2EX powershell setx 变量后无法自身得到变量值 - V2EX 请教, powershell 脚本中使用中文,脚本文本存储的是 utf-8,运行后中文就是乱码。 - V2EX oh-my-posh 导致 powershell 启动缓慢 - V2EX powershell 管道问题 - V2EX 如何在打开 powershell 脚本的时候, cd 到脚本所在目录 - V2EX 如何让 powershell 输出的 txt 日志为 unix lf 格式 - V2EX 这个 powershell "比对”命令能优化吗? - V2EX powershell 运行 ps 文件的时候,如何支持带空格的路径 - V2EX cmd 输出日志的时候,如何不写入重复日志 - V2EX 请教-关于 PowerShell 的使用场景问题——竞赛,编程挑战,运维需求在哪里找 - V2EX Windows 运行 ffmpeg 批量脚本的时候,如何在不中断的情况下限制 CPU 使用率 - V2EX cmd 控制台显示输出日志过滤 - V2EX powershell7, 执行速度和自动补全速度都慢的令我抓狂 - V2EX 请教一下.ps1 运行时如何让 powerShell 同时显示所运行命令的内容 - V2EX 有什么不错的 powershell 书籍吗? - V2EX PowerShell 是否可以实现类似 expect 的功能? - V2EX PowerShell 启动慢 - V2EX 现在 PowerShell 是不是没有什么用? - V2EX PowerShell 竟然强悍如斯! - V2EX 请问如何使用 powershell 禁用/启用设备? - V2EX 逐浪 CMSv8.2 发布-集成 Node 与 Vue 脚手架和 PowerShell 支持的新一代网站管理系统 Powershell 的管道兼容性 powershell 的 tab 参数补全的,两个不同方式详解。 - V2EX 在 PowerShell 中好好说话 在 PowerShell 中使用 fish-style 自动补全提示 - V2EX PowerShell 与 Windows Terminal 增强配置 - V2EX 怎么把一个脚本方法注册为系统的环境变量? - V2EX !微软又放鸽子了! - V2EX 分享 powershell ssh to Linux 脚本。 PowerShell Core 7.0 RC 已经发布 powershell 一个很诡异的问题 - V2EX powershell 的 ntp 校时脚本,光棍节秒杀专用! PowerShell 如何强行覆盖一个文件 - V2EX 如何使用命令行或 PowerShell 删除一个已经安装好的证书 PowerShell 如何导入已有的 SSL 证书 - V2EX PowerShell 如何定义文件夹的权限 - V2EX 推荐一个 github 上的 PowerShell 项目 - V2EX Out-GridView 在 PowerShell Core 中回归了 - V2EX powershell 6, 7 的新特性。 - V2EX 新出炉的 ssh-copy-id6.ps1,是新版 vscode 的最佳拍档 - V2EX 把那 5000 多万条企业数据放到 SQLite 数据库里
powershell 的独门秘技之气运“丹田”
ps1aniuge · 2020-06-05 · via PowerShell

powershell 有管道符“|”,管道的两端,可以传递 powershell 对象。这是咱家独门秘技。

若没有 [管道两端传对象] ,这条命令就无法运行。
dir |where-object { $_.length -gt 1000} #返回大于 1000 字节的文件。

[管道两端传对象] 相当于 ps 之人的 [丹田] ,练 ps 武功的根基。只需要打坏练武之人的 [丹田] ,就可以废他 9 成武功。

我把 [ win,linux 脚本用户] ,比喻成“女人”,
我把 [管道传递对象] ,比喻成“美颜相机”。

在 win7 中有 ps 管道传递对象功能。这个“美颜相机”,可以被看做早期的,功能简陋的,高端用户手中的玩具。
随着时间推移,随着 2020 年 1 月 14 日 win7 的 eol ;随着 win10 的上位普及;随着高级手机的普及;
powershell 在 win 中无敌了。代表“美颜相机”的管道传递对象功能普及了。

现在每个“win 女人”手里都拿着“美颜相机”版手机。当然,美颜相机也可以关掉不用。只用管道传递字符串。

这样的“win 女人”,占所有女人的 89%(世界上 win 用户大概有 89%这个样子)

现在每个“linux 女人”,手里的默认手机( bash,zsh )都不能美颜。但这些 linux 女人,可以一键安装开源免费的 powershell (美颜相机)详见 https://gitee.com/chuanjiao10/kasini3000_agent_linux

现在知乎上有人说“powershell 发明的管道传对象,没前途不可行”。被我类比为“美颜相机是幺蛾子,没前途,女人不应该用”。

实际上,我很讨厌女人用美颜相机,她们简直是“容貌诈骗犯”,欺骗了我的眼睛和感情。我对老婆这样一说,结果被她一脚踢下了床。

可见“女人们”并不这么想。比如:
vmware 有两种管理命令行,一种是基于 linux 的,一种是基于 powershell 的 powercli 。很显然 powercli 比基于 linux 的简单强大。
这里面少不了管道传对象,这个“美颜相机”的功能。

你说:“ [管道两端传对象] 不行”。
我说:“为啥以 shell 的标准看 powershell ?”
管道传对象到底行不行?我说行,你说不行,到底看好不?走着瞧呗。

手机厂家,带着美颜相机,已经征服世界上绝大多数女人。乔碧萝都能给你搞成可爱大眼萌;祛斑减皱纹,老太太用了都说好

powershell 带着管道传对象,征服大多数 linux 用户,还远吗?