命令行外壳和脚本环境 PowerShell

码农软件 · 软件分类 · 脚本编程语言 · 2019-03-04 11:58:51

软件介绍

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

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

PowerShell 与 Bash 的对别:

BashPowerShellDescription
lsdir, Get-ChildItemList files and folders
treedir -RecurseList all files and folders
cdcd, Set-LocationChange directory
pwdpwd, $pwd, Get-LocationShow working directory
clear, Ctrl+L, resetcls, clearClear screen
mkdirNew-Item -ItemType DirectoryCreate a new folder
touch test.txtNew-Item -Path test.txtCreate a new empty file
cat test1.txt test2.txtGet-Content test1.txt, test2.txtDisplay files contents
cp ./source.txt ./dest/dest.txtCopy-Item source.txt dest/dest.txtCopy a file
cp -r ./source ./destCopy-Item ./source ./dest -RecurseRecursively copy from one folder to another
mv ./source.txt ./dest/dest.txtMove-Item ./source.txt ./dest/dest.txtMove a file to other folder
rm test.txtRemove-Item test.txtDelete a file
rm -r <folderName>Remove-Item <folderName> -RecurseDelete a folder
find -name build*Get-ChildItem build* -RecurseFind 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

本文地址:https://codercto.com/soft/d/601.html

付费:互联网知识经济的兴起

付费:互联网知识经济的兴起

方军 / 机械工业出版社 / 2017-6-1 / CNY 59.00

关于互联网知识付费的首部作品 知识工作正在被重塑,知识经济正在开启互联网时代下半场 为你展现互联网知识经济全景大图,解读新物种的前世今生 内容简介 一个产业解读 三个分析工具 一组知识卡片 书是最早的知识载体,已有2000多年的付费历史,随着移动互联网的普及,新的知识经 济在今天爆发,知识的创造者和传播者从书后走到了书前,互联网知识经济正在拉开帷幕。知识的......一起来看看 《付费:互联网知识经济的兴起》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具