PowerShell
xkkui
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【PowerShell】常用命令
cat/Get-Content: 带行号 PS> $ cat <filePath> | ForEach-Object { "{0} {1}" -f $_.ReadCount,$_ } # OR PS> $ forEach ($i in (cat <filePath>)) { "{0} {1}" -f $i.ReadCount,$i }原创 2022-01-08 14:15:24 · 3039 阅读 · 1 评论 -
【PowerShell】查询路径下所有的文件与文件夹大小
下面的所有的 Script 都是写在一个叫 filesize.ps1 文件下。 编辑 $PROFILE配置(Microsoft.PowerShell_profile.ps1),如下: Import-Module "<路径>/fiesize.ps1" PowerShell Script (Version 1): Function filesize { [cmdletbinding()] Param($path='./' ) dir -Path $path -Force |原创 2021-09-18 11:37:36 · 3933 阅读 · 0 评论 -
【Powershell】 命令行查看 docker远程可用 image 所有版本 tag
powershell # Version Powershell 7 param( $Image ) $API="https://registry.hub.docker.com/v1/repositories" function Usage { Write-Host @" Usage: docker-tags NAME[:TAG] docker-tags list all tags for docker image on a remote registry. Example: doc原创 2021-06-23 11:06:31 · 1428 阅读 · 0 评论
分享