如何删除 Powershell 开始文本? [英] How to I remove the Powershell start text?

查看:29
本文介绍了如何删除 Powershell 开始文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Powershell 6 有一个 Unix 风格的 /etc/issue,其中提到了指向文档的链接.

Powershell 6 has a Unix-style /etc/issue that mentions a link to the docs.

PowerShell v6.0.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

这很好,但是:

  • 我知道文档在哪里
  • 我知道我推出了 Powershell 6

如何删除部分或全部消息?IIRC Powershell 5 仍然有版权信息,所以也许我无法删除它,但是去掉最后 3 行会有所帮助吗?

How can I remove some, or all of the message? IIRC Powershell 5 still had the copyright message so maybe I can't remove that, but getting rid of the last 3 lines would help?

推荐答案

通过 -nologo 选项.

Pass the -nologo option.

-NoLogo 启动 PowerShell 控制台而不显示版权横幅.

-NoLogo Starts the PowerShell console without displaying the copyright banner.

pwsh.exe -nologo ...other arguments...

这篇关于如何删除 Powershell 开始文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆