PowerShell 命令行外壳和脚本环境开源项目

我要开发同款
匿名用户2016年08月19日
47阅读
开发技术C#
所属分类程序开发、脚本编程语言
授权协议MIT

作品详情

PowerShell是一个跨平台的(Windows,Linux和OSX)自动化和配置工具(框架),可以和已有的工具友好集成,特别优化用于处理结构化数据(如JSON,CSV,XML等),RESTAPIs以及对象模型。它包含一个命令行Shell、一个关联的脚本语言以及一个用于处理cmdlets的框架。

PowerShell就相当于Linux下的Bash以及SHELL脚本编程语言。

PowerShell与Bash的对别:

BashPowerShellDescriptionlsdir,Get-ChildItemListfilesandfolderstreedir-RecurseListallfilesandfolderscdcd,Set-LocationChangedirectorypwdpwd,$pwd,Get-LocationShowworkingdirectoryclear,Ctrl+L,resetcls,clearClearscreenmkdirNew-Item-ItemTypeDirectoryCreateanewfoldertouchtest.txtNew-Item-Pathtest.txtCreateanewemptyfilecattest1.txttest2.txtGet-Contenttest1.txt,test2.txtDisplayfilescontentscp./source.txt./dest/dest.txtCopy-Itemsource.txtdest/dest.txtCopyafilecp-r./source./destCopy-Item./source./dest-RecurseRecursivelycopyfromonefoldertoanothermv./source.txt./dest/dest.txtMove-Item./source.txt./dest/dest.txtMoveafiletootherfolderrmtest.txtRemove-Itemtest.txtDeleteafilerm-r<folderName>Remove-Item<folderName>-RecurseDeleteafolderfind-namebuild*Get-ChildItembuild*-RecurseFindafileorfolderstartingwith'build'grep-Rin"sometext"--include="*.cs"Get-ChildItem-Recurse-Filter*.cs|Select-String-Pattern"sometext"Recursivelycase-insensitivesearchfortextinfiles
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论