首页 > 系统相关 >powershell

powershell

时间:2022-10-17 19:25:42浏览次数:83  
标签:Show Windows Tree tree 博客 powershell

将 Windows PowerShell 更新到最新版本 | D栈 - Delft Stack

Powershell教程 - IT宝库 (itbaoku.cn)

动力外壳画廊|家 (powershellgallery.com) 图库

powershell 字符集, 关于字符编码 - PowerShell | Microsoft Learn

在 terminal 中打开设,选择 settings json 文件,找到 commandline 属性置添加 -nologo

 "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -nologo "

查看版本

$PSVersionTable
host

更新

Install-Module PowerShellGet -Force -Verbose

(328条消息) Windows Terminal美化增强指南_ashtime99的博客-CSDN博客

Powershell官网

https://www.powershellgallery.com/

目录文件树结构

tree

https://blog.csdn.net/weixin_41010198/article/details/106356683

https://www.cnblogs.com/ricolee/p/cmd-tree.html 在windows上的git bash中安装tree 和 linux tree命令使用

Powershell 中与 Pscx有与 tree 相似 , 在官网可以看 ,安装命令 Install-Module -Name Pscx -AllowPrerelease

输入 get-help Show-Tree 查看命令参数

➜ ~  get-help Show-Tree

NAME
    Show-Tree

SYNOPSIS
    Shows the specified path as a tree.


SYNTAX
    Show-Tree [[-Path] <String[]>] [[-Depth] <Int32>] [-Force] [-IndentSize <Int32>] [-ShowLeaf] [-ShowProperty] [-ExcludeProperty <String[]>] [-Width <Int
    32>] [-UseAsciiLineArt] [<CommonParameters>]

    Show-Tree [[-LiteralPath] <String[]>] [[-Depth] <Int32>] [-Force] [-IndentSize <Int32>] [-ShowLeaf] [-ShowProperty] [-ExcludeProperty <String[]>] [-Wid
    th <Int32>] [-UseAsciiLineArt] [<CommonParameters>]


DESCRIPTION
    Shows the specified path as a tree.  This works for any type of PowerShell provider and can be used to explore providers used for configuration like th
    e WSMan provider.


RELATED LINKS

REMARKS
    To see the examples, type: "get-help Show-Tree -examples".
    For more information, type: "get-help Show-Tree -detailed".
    For technical information, type: "get-help Show-Tree -full".

在配置文件中,配置-nologo,注意版本:

"commandline": "powershell.exe -nologo", //5
"commandline": "pwsh.exe -nologo", //7
12

SSH配置
在配置文件中添加,guid生成地址
注意:guid不允许重复

{
	"guid": "{f879cccf-3a41-42cf-bb92-0e3754cfda43}",
	"hidden": false,
	"name": "名字",
	"commandline": "ssh 用户名@服务器地址"
}

查变量以查看当前编码。$OutputEncoding

$OutputEncoding

seebi/dircolors-solarized: This is a repository of themes for GNU ls (configured via GNU dircolors) that support Ethan Schoonover’s Solarized color scheme. (github.com)

配色方案:

配色方案

推荐两个配色方案的网站

美化:

参数详解:(331条消息) Windows 终端配置(powershellcmdgit bash等等)_Once_day的博客-CSDN博客_windows终端配置

(331条消息) 「环境&工具」 PowerShell终端(Windows Terminal)美化_Raink_LH的博客-CSDN博客_powershell终端

Windows 11 下 Windows Terminal 配置使用及美化小结 - jingkunliu - 博客园 (cnblogs.com)

Windows Terminal美化(oh-my-posh3) - 知乎 (zhihu.com)

oh-my-zsh - Windows 终端 + oh-my-posh 不显示 git 状态 - IT工具网 (coder.work)

(330条消息) 美化Windows PowerShell以及Fluent Terminal配置Posh-git、Oh-my-posh、DirColors方法_Ayka的博客-CSDN博客

(330条消息) powershell+oh-my-posh PSReadLine 代码提示配置_yym68686的博客-CSDN博客_ohmyposh 提示

强化win10下的命令行 - 颜值和实用并存 - 掘金 (juejin.cn)

美化你的PowerShell | YuGao's Blog (sxyugao.top)

(330条消息) Windows Terminal配置美化 + Git配置 + 管理员配置_iqqcode的博客-CSDN博客

PowerShell美化oh-my-posh主题及特殊字符替 - 『编程语言区』 - 吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

(330条消息) PowerShell 安装、配置和美化_幼儿园杠精的博客-CSDN博客_powershell安装

Oh My Posh:全平台终端提示符个性化工具 - 少数派 (sspai.com)

查看目录和文件结构

tree /?
Graphically displays the folder structure of a drive or path.

TREE [drive:][path] [/F] [/A]

   /F   Display the names of the files in each folder.
   /A   Use ASCII instead of extended characters.

常用快捷键

分屏快捷键如下:

水平分屏:Alt + Shift + 减号
垂直分屏:Alt + Shift + 加号

切换聚焦的分屏视图:alt + (left/right/up/down)
调节分屏的窗口大小:alt + shift + (left/right/up/down)

缩放当前视图:Ctrl+ 加号/减号 (或者 Ctrl + 鼠标滚轮)

退出分屏:exit

标签:Show,Windows,Tree,tree,博客,powershell
From: https://www.cnblogs.com/chengpopeye/p/16800278.html

相关文章

  • 使用Powershell/cmd提取msi安装包中的文件
    在前面的文章中介绍过如何使用msiexec这个程序执行自动化安装(https://www.cnblogs.com/zhaotianff/p/11558602.html)如果需要提取msi安装包中的文件,也可以使用msiexec程......
  • 利用powershell批量升级DELL的idrac
    利用powershell批量升级DELL的idrac拓扑环境及工具环境:windows系统工具:racadm软件,下载地址链接racadm手册(pg97)链接我们这里用的是powershell语言,因为idrac管理机是......
  • 如何以root管理员的身份唤起powershell?
    使用运行窗口打开带管理员权限的PowerShell1.按下组合键Windows+R以打开运行窗口。输入powershell然后按下回车键。2.WindowsPowerShell会以当前用户的权限去执行。3.......
  • PowerShell
    PowerShell在管理员权限下调整执行策略远程执行ps脚本两个要求:远程主机身份经过验证,为可信任主机为满足第一个要求,远端主机必须经过域服务器验证。最佳应对方法时将......
  • 通过cmd和Powershell管理Windows服务
    cmd添加服务:sccreate"YourServiceName"binpath="<yourproject>.exe"启动服务:scstart"YourServiceName"停止服务:scstop"YourServiceName"删除服务:scdelete"You......
  • 通过Powershell 采集电脑上安装的软件
    点击查看代码![](https://img2022.cnblogs.com/blog/1326813/202210/1326813-20221002225935257-1660369632.png)#1获取当前日期$collect_date=Get-Date-Format"yyy......
  • aardio + PowerShell 可视化快速开发独立 EXE 桌面程序
    aardio可以方便地调用PowerShell,PowerShell中也可以自由调用aardio对象与函数。不用带上体积很大的System.Management.Automation.dll,直接调用系统组件,可以生成体积......
  • powershell 检查电脑指定软件安装情况
    `#1获取当前日期$collect_date=Get-Date-Format"yyyy-MM-ddHH_mm"2获取计算机主机名$ComputerName=hostname3定义需要查询的软件名称$AppDisplayName="Anyshar......
  • Powershell ExecutionPolicy 执行策略
    简单说明:powershell对于脚本的执行有着严格的安全限制Get-ExecutionPolicy-List#查看当前的执行策略Set-ExecutionPolicy-ScopeCurrentUserRemoteSigned#设置执行策略......
  • powershell 7 初体验
    支持枚举定义,类定义\类继承\接口继承,不支持接口定义\泛型类定义\泛型函数定义,但是作为shell脚本已经相当让人惊喜了,基本逻辑可以直接套用C#语法格式#enum_sample/main.......