云网牛站
所在位置:首页 > Linux软件 > 跨平台自动化配置管理框架PowerShell Core 6.0.4发布

跨平台自动化配置管理框架PowerShell Core 6.0.4发布

2018-08-13 09:04:43作者:王练稿源:LINUX社区

PowerShell Core 6.0.4正式发布,它是一款微软开源的跨平台(支持Windows、Linux和OS X操作系统)自动化和配置工具(框架),可以和已有的工具友好集成,特别优化用于处理结构化数据(如JSON、CSV、XML等),REST APIs以及对象模型。它包含一个命令行Shell、一个关联的脚本语言以及一个用于处理cmdlets的框架。PowerShell Core 6.0.4提供debian及ubuntu专有的软件包,主要支持64位处理器。安装方法参考在Linux及OS X系统中安装Microsoft PowerShell一文。

 

PowerShell Core 6.0.4主要更新

1.Build and Packaging Improvements

Aggregate native components into a single NuGet package "Microsoft.PowerShell.Native".

Update the version of NuGet packages referenced by PowerShell.

Fix release build for macOS.

2.Test

Fix xUnit tests.

Add new tests for hosting PowerShell SDK NuGet packages.

 

PowerShell项目下载

 

PowerShell和Bash的对别

Bash

PowerShell

Description

ls

dir, Get-ChildItem

List files and folders

tree

dir -Recurse

List all files and folders

cd

cd, Set-Location

Change directory

pwd

pwd, $pwd, Get-Location

Show working directory

clear, Ctrl+L, reset

cls, clear

Clear screen

mkdir

New-Item -ItemType Directory

Create a new folder

touch test.txt

New-Item -Path test.txt

Create a new empty file

cat test1.txt test2.txt

Get-Content test1.txt, test2.txt

Display files contents

cp ./source.txt ./dest/dest.txt

Copy-Item source.txt dest/dest.txt

Copy a file

cp -r ./source ./dest

Copy-Item ./source ./dest -Recurse

Recursively copy from one folder to another

mv ./source.txt ./dest/dest.txt

Move-Item ./source.txt ./dest/dest.txt

Move a file to other folder

rm test.txt

Remove-Item test.txt

Delete a file

rm -r <folderName>

Remove-Item <folderName> -Recurse

Delete a folder

find -name build*

Get-ChildItem build* -Recurse

Find a file or folder starting with 'build'

grep -Rin "sometext" --include="*.cs"

Get-ChildItem -Recurse -Filter *.cs
| Select-String -Pattern "sometext"

Recursively case-insensitive search for text in files

 

相关主题

PowerShell Core能作为Linux Snap软件包进行安装

精选文章
热门文章