系统学下POWERSHELL吧,工作当中可能用得到呢。不能像以前那样修修改改了。

简介: 把环境,编辑器,版本这些都弄清楚,说不好还能把FCL类库弄懂个大概???:)   [DateTime]::IsLeapYear(2008) $result = [DateTime]"06/21/2008" - [DateTime]::Now $result.

把环境,编辑器,版本这些都弄清楚,说不好还能把FCL类库弄懂个大概???:)

 

[DateTime]::IsLeapYear(2008)
$result = [DateTime]"06/21/2008" - [DateTime]::Now
$result.TotalDays
dir
cd c:
pwd
cd \
cd qiyi
pwd
Get-Item Cache\* | Move-Item -Destination offline
Get-Item offline\* | Copy-Item -Destination Cache
Get-Process
Get-Process|Where-Object { $_.Handles -ge 500 }
Get-Process|Where-Object { $_.Handles -ge 500 }|Sort-Object Handles
Get-Process|Where-Object { $_.Handles -ge 500 }|Sort-Object Handles|Format-Table Handles,Name,Description -Auto
gps [b-t]*[c-r] | Stop-Process | Whatif
gps [b-t]*[c-r] | Stop-Process -WhatIf
Get-Command *process*
"Hello World" | Get-Member
"Hello World".ToUpper
"Hello World" | ToUpper
"Hello World".ToUpper()
$handleCount = 0
foreach($process in Get-Process) { $handleCount += $process.Handles }
$handleCount
$count = 0
foreach($process in Get-Process) { $count += 1 }
$count
$webClient = New-Object System.Net.WebClient
$content = $webClient.DownloadString("http://www.baidu.com")
$content.Substring(0,1000)
Get-History

目录
相关文章
|
Linux iOS开发 MacOS
PowerShell命令行输出和添加系统环境变量
主要介绍使用PowerShell命令如何查看、修改和删除系统环境变量,对于需要操作添加PATH环境变量非常实用 。由于 Powershell 的跨平台,其环境变量修改可以在linux、macos...
6157 0
PowerShell命令行输出和添加系统环境变量
|
Windows
powershell配置anaconda及解决【无法加载文件C:\Users\xxx\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本】的问题
powershell配置anaconda及解决【无法加载文件C:\Users\xxx\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本】的问题
4833 0
|
存储 运维 Java
PowerShell系列(八)PowerShell系统默认内置的Provider介绍
【2月更文挑战第3篇】Alias Provider用来标记其他命令的对象,一般用来标记命令中比较长的函数或者命令,也支持在PowerShell当中指定CMD Shell 中的命令的别名。其实目的都是通过较短的别名来简化一些命令的使用。
PowerShell系列(八)PowerShell系统默认内置的Provider介绍
|
数据安全/隐私保护 异构计算 Windows
【Azure 环境】 介绍两种常规的方法来监视Window系统的CPU高时的进程信息: Performance Monitor 和 Powershell Get-Counter
【Azure 环境】 介绍两种常规的方法来监视Window系统的CPU高时的进程信息: Performance Monitor 和 Powershell Get-Counter
406 0
|
存储 JSON 运维
【运维】Powershell 服务器系统管理信息总结(进程、线程、磁盘、内存、网络、CPU、持续运行时间、系统账户、日志事件)
【运维】Powershell 服务器系统管理信息总结(进程、线程、磁盘、内存、网络、CPU、持续运行时间、系统账户、日志事件)
686 0
|
Ubuntu Shell Docker
docker Ubuntu系统中安装使用 powershell
docker Ubuntu系统中安装使用 powershell
442 0
|
前端开发 微服务 Windows
PowerShell 命令窗口执行 pnpm 命令报错 无法加载文件 pnpm.ps1,因为在此系统上禁止运行脚本
PowerShell 命令窗口执行 pnpm 命令报错 无法加载文件 pnpm.ps1,因为在此系统上禁止运行脚本
|
Ubuntu Shell Docker
Ubuntu系统中使用 powershell
本文介绍如何在 Ubuntu 系统中安装使用 Powershell (以 docker 内安装为示范)
475 0
|
资源调度
PowerShell yarn : 无法加载文件 C:\Users\Admin\AppData\Roaming\npm\yarn.ps1,因为在此系统因为在此系统上禁止运行脚本。
PowerShell yarn : 无法加载文件 C:\Users\Admin\AppData\Roaming\npm\yarn.ps1,因为在此系统因为在此系统上禁止运行脚本。
940 0
PowerShell yarn : 无法加载文件 C:\Users\Admin\AppData\Roaming\npm\yarn.ps1,因为在此系统因为在此系统上禁止运行脚本。